forked from ethereum/trinity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d06ab5
commit cc7ef8d
Showing
15 changed files
with
273 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Block Workflow | ||
|
||
The following workflows are supported for blocks. | ||
|
||
## 1. Block Building | ||
|
||
Incremental creation | ||
|
||
1. Initialize Block - `Header.from_parent(...)`: | ||
- `coinbase` | ||
- `parent_hash` | ||
- `difficulty` | ||
- `block_number` | ||
- `gas_limit` | ||
- `timestamp` | ||
2. Apply Transaction(s) - `Block.apply_transaction(...)`: | ||
3. Mine Block - `Block.mine(...)`: | ||
- `uncles_hash` | ||
- `state_root` | ||
- `transaction_root` | ||
- `receipts_root` | ||
- `bloom` | ||
- `gas_used` | ||
- `extra_data` | ||
- `mix_hash` | ||
- `nonce` | ||
|
||
|
||
## 2. Block Ingestion | ||
|
||
> (This is actually just a special case of use case #1.) | ||
Full ingestion of a complete block. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.