Currently the eth_getTransactionCount, which is responsible for returning the nonce of an address at a given block number, only return the persisted nonce in state of that block, not including the pending nonce in tx pool. If users query nonce at the pending block, this API must return that pending nonce also. This PR adds a pending nonce query in tx pool in that case.
Currently the
eth_getTransactionCount
, which is responsible for returning the nonce of an address at a given block number, only return the persisted nonce in state of that block, not including the pending nonce in tx pool. If users query nonce at the pending block, this API must return that pending nonce also. This PR adds a pending nonce query in tx pool in that case.