codechain
codechain copied to clipboard
Sequences in reverse order
In the Corgi testnet, there are invalid transactions found on the block 29978 and 29979
In block 29978, there are 2 transactions which were signed by the same signer.
The sequence of the first tx(0x615f65...) is 42929 and it failed. The sequence of the second tx is 42928.
In addition, the first tx(0x615f65..) appears again in the next block, which is 29979. (But, you wouldn't find it in the explorer because the indexer can't index it.)
Because https://github.com/CodeChain-io/codechain/pull/1379 made CodeChain do not include the transaction with an invalid sequence, this situation will not happen again. But we should find why the mempool returns a transaction in reverse order.