A user writes and signs a transaction request with their account using the private key.
2 Transaction broadcast
The user broadcasts the transaction request to the entire Ethereum network from a node.
3 Request added to mempool
Each node in the network adds the request to their local mempool.
A mempool is a list of all transaction requests that have not yet been committed to the blockchain in a block.
4 Transaction request aggregation
After some time, a mining node aggregates many transaction requests (from dozens to hundreads) into a potential block.
By doing this the transaction fee earned while still staying under the block gas limit is maxed.
5 Miner awards transaction fee
The mining node:
- verifies the validity of each transaction
- executes the code of the request
This second step alter the state of the local EVE
The miner awards the transaction fee! Profit!
6 proof-of-work certificate
When all block transaction requests have been:
- verified
- executed
the mining node begins the process of the creation of the proof-of-work certificate for the block.
Eventually, the certificate for the request is produced.
7 Block broadcast
The miner then broadcasts the completed block.
The completed block includes:
- the certificate
- a checksum of the new EVM state.
8 Other nodes' verification
Other nodes:
- verify the certificate
- execute all transactions on the block
- verify that the checksum of the new EVM state matches the miner's block one.
- append the block to the blockchain's tail
- accept the new EVM state as the canonical state
9 Mempool cleanup
All the transactions in the new block from the nodes' local mempool of unfulfilled transaction requests are removed.
10 New nodes sync
New nodes:
- download all blocks in sequence (including the block with the new transaction).
- initialize a local EVM copy.
- execute every transaction in every block of their local EVM.
- verify state checksums at each block.
if you liked this thread, follow @FrancescoCiull4 for more and RT this tweet. Thank you
Shard chains could decide the future of the Ethereum blockchain (in a positive or negative sense).
Here are the concepts of sharding.
↓
Table of Contents
- What is sharding?
- Basic concepts
- When is sharding shipping?
- Everyone can run a node
- Sharding & Validators
- More devices => More security
- Shards & Beacon Chain
- Shards & The Merge
What is sharding?
"Sharding" is the process of splitting a DB horizontally to spread the load.
For Ethereum, sharding will create new chains (the shards)
Sharding will:
📉 reduce network congestion
📈 increase transactions per second