Transaction Nonce – Are Transactions Mined in Nonce Order from One Account?

contract-invocationminingprotocolsolidity

Discussion in another thread raises an interesting point. how many transactions could be included in a new block from the same account?

Since

  1. miners can opt to omit a known transaction from the block they're
    working on
  2. miners don't have simultaneous knowledge of pending
    transactions

is it correct to conclude that transactions submitted from the same node more or less simultaneously (and with ascending nonce) are not necessarily mined in nonce order?

Best Answer

The protocol requires that transactions from a single account are executed in nonce order. It's still possible for an account to have many pending transactions, and as long as the nonces are contiguous, a miner can include as many of them as desired in a single block, as long as they're executed in order.

There's no guarantee of ordering of transactions issued by different accounts.

Related Topic