ainblockchain/ain-blockchain

[BUG] Unstable tx info

platfowner opened this issue · 9 comments

ain_getTransactionByHash() returns unstable results:

tx hash:
tx1

tx detail:
tx2

tx detail -> (FINALIZED) -> tx hash -> tx detail

I see it's NOT observed with local nodes.

It's reproduced with testnet nodes.

It's NOT reproduced with staging nodes.

It's NOT reproduced with mainnet nodes.

testnet case:
EXECUTED status : ~50 seconds
FINALIZED status with tx details: ~40 seconds
FINALIZED status with just tx hash: ~160 seconds

Observations:

  • Node 1 ~ 4 always return normal results
  • Node 0 sometimes but not always returns abnormal (tx hash only) results

Observations:

  • Tx sent to node 0, block proposed by node 4 => occured! (not always)
  • Tx sent to node 0, block proposed by node 1 => occurred!
  • Tx sent to node 0, block proposed by node 3 => occurred! (not always)
  • Tx sent to node 0, block proposed by node 2 => occurred! (not always)
  • Tx sent to node 0, block proposed by node 0 => occurred! (not always)

Observations:

  • Tx 1 and tx 2 sent and contained in the same block => occurred for both tx 1 and tx 2 !
  • Tx 1 and tx 2 sent and contained in the same block => NOT occurred for either tx 1 nor tx 2 !

Resolved.