current position:Home>Why does nonce in eth trading have to be continuous? I think it's bigger than the current one. Please solve your doubts???

Why does nonce in eth trading have to be continuous? I think it's bigger than the current one. Please solve your doubts???

2022-02-03 20:51:30 Q & A of Denglian community




Take the answer 1:

transaction Nonce The purpose of is to prevent Two flowers . So it will Nonce As information that cannot be reused, it is stored in the transaction , A transaction table similar to a single account grows from ID.

But if Nonce Discontinuous , Will result in transactions being easily discarded . In the network, the transaction messages received by nodes are not orderly and stable . such as ,A Send two transactions in a row A3 and A5( A Last Nonce by 2). If the miner receives A5, Will directly A5 Package into blocks . until A5 Received after being written into the block A3, Then according to the above rules ,A3 Will be discarded .

Instability of network message broadcasting , When the transaction volume of a single account is very large , The problem of discarding transactions will become more and more serious . therefore , requirement Nonce Must be continuous , The node received $$T_m $$ (m > n+1) The transaction will be temporarily stored in TxPool Pending In line , until $$ T_m-1 $$ It will not be processed until it is successfully packaged into the block .






Other answers 1:


Other answers 2:


Other answers 3:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032051266846.html

Random recommended