10

I'm wondering what the exact chain of events looks like once a transaction is submitted.

1
  • 1
    Welcome to our new community! It's generally a good idea to show what research you've done on your own so far, so a 1-line question like this doesn't look like a "low-effort question". Apr 30, 2021 at 22:01

1 Answer 1

15

When a transaction is submitted, it is loaded into the node's mempool. This is like a waiting room for transactions that haven't yet made it on the blockchain. Whether the node is daedalus, or a stakepool, the nodes communicate with each other using the TxSubmission mini-protocol. New transactions are sent to all other nodes in the network.

Once a stakepool has been elected to make a block, it drains its mempool while validating all the transactions. It will fill up the block with all the transactions or until 65536 bytes (the current max block size which could be increased in the future).

That block is published on the blockchain. The BlockSync mini-protocol transmits the block until it propagates to all nodes. All nodes process the transactions in the block and remove any transactions from their mempool that have made it into the block.

mempool chart

1
  • 1
    Thanks for the great answer :) May 2, 2021 at 18:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.