Tour: Committing a Block

This tour follows a block in the geth client from when it arrives at a network socket until it is committed to the blockchain.

Setup

Attribution

This is a greatly extended version of go-ethereum-code-walkthrough.md by gsalgado. Code references were updated, more detail was added, information about types was added, a redundant step was removed, spelling was corrected, setup instructions were added and code snippets were added.

Preconditions

TODO add the missing steps for the following into the initialization subtour below:

  • Program is configured and started.
  • All services are registered.
  • The discovery protocol discovered some nodes.
  • The peermanager successfully connected to a node.
  • An encrypted multiplexed session is established.
  • We are waiting for ingress data in the peer connection.

Initialization

Message Handling

results matching ""

    No results matching ""