BuildOnViction / victionchain

The Efficient Blockchain Powered By Proof Of Stake Voting Consensus
https://viction.xyz
GNU Lesser General Public License v3.0
168 stars 85 forks source link

Check pending nonce in tx pool also #426

Closed trinhdn2 closed 6 months ago

trinhdn2 commented 10 months ago

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.