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：
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
The sidebar is recommended
- What else does the meta universe lack? Immersive sound hasn't been customized for avatars yet
- Ethereum web3js calls smart contract and does not return transaction hash
- How is Block 0 confirmation implemented
- What are the testing tools for Ethereum smart contract?
- Why can't I display pictures in my wallet when I bind the tokenid with the hash returned from uploading to IPFs?
- TransferHelper: TRANSFER_ FROM_ FAILED
- How to solve the problem of solidness version and package?
- How can a token in Tron wave field and TRX Group LP, pair contract obtain the quantity of a token through LP?
- Using openzepplin library contract
- What was the initial POS consensus agreement?
guess what you like
Introduction to blockchain
What progress has filecoin made so far?
What are the impacts of Libra compared with DCEP?
What is a token in the blockchain?
Is there any material that can make Xiaobai learn blockchain quickly?
How to validate smart contracts?
Can Ethereum's official wallet password be restored if you forget it?
What is BiP
How to convert byte type to integer uint in solidity
How to convert bytes type into address type in solidity
- How to distinguish between contract address and ordinary account address?
- Can this be used in the smart contract constructor?
- Convert uint to bytes in solidity
- What does gas in Ethereum mean?
- How is the Ethereum contract address calculated?
- What Ethereum projects are suitable for beginners to learn solidity?
- Why create a new contract language, solid, instead of using other existing languages
- Can I get the hash of the transaction in the solidity function?
- How to delete an element at a certain position in an array in solidity?
- Does solid have a simple and universal storage model?
- Solidity: what is the difference between 'view' and 'constant'?
- How to determine whether a key exists in a mapping? Struct is defined in the library (in solidity).
- How does Sha3 / keccak256 in solidity calculate the cell hash value?
- Return and read a structure through Web3
- How do I know the compiled version of solidity I'm using
- What is an event?
- Should we use the private matemask node
- How to build a usdt wallet node based on erc20
- ZK snark how to set CRS if there is cyclic logic in the circuit
- Teacher, I got the value with Web3 according to your video tutorial, but when calling setinfo with Web3, an error is reported when the set value is set. What is the reason?
- When setting the default initiating account, the console reports an error: Web3 eth. defaultAccounts is not a function
- Accounts has been unable to get the local address.
- Metamask is connected to the local network. Why can't Web3 use the default address?
- Write the code in and still can't get the address. Is it related to my network? I've been using metamask reponste3 to test the network, but the local network 8545 can't be connected
- Setinfo is called successfully, but an error will be reported after success. What is the reason?
- Use the Ganache local node to prompt that the introduction of Web3 is successful. But you can't use Web3's method
- Solid returns cannot return results
- Why did I get an error initializing the genesis block.
- Why do I start the RPC service of geth node and send a request to the node without response from the terminal?
- How to solve the problem of displaying errors in the constructor of solidity because of the version of vs Code?
- The new version of truss initializes test with init. There are no files in test. Is it a version problem?
- What do you think of the time it takes to call a contract
- Problems encountered initializing folders with truss init. Prompt: how to solve the problem of unable to connect to the network
- What is the solution
- When compiling the contract, the terminal input truss compile is stuck and cannot be compiled successfully
- What is the problem that the version of the solid compiler cannot be matched after the truss compile prompt
- Interact with the contract in the truss console, and call Web3 when passing parameters The toWei hint is not a function
- Building usdt wallet node based on erc20
- Why is there a promise syntax error when it is written like this? It shows that the listener function is undecided. Obviously, a contract instance has been successfully introduced.
- How do contracts simulate the passage of time?