* Start loosing ommers checks
* Replace ommers database integrity error in execution stage for unwrap_or_else so that node does not stop when block has no ommers
* Replace ommers database integrity error in execution stage for unwrap_or_else so that node does not stop when block has no ommers
* Add rlp encoding support for IpAddr
* Lock support behind std feature
* Replace Octets with IpAddr
* Derive Rlp traits for NodeEndpoint
* Derive Rlp traits for NodeRecord
* Headerstage now gives control back to pipeline after commit_threshold blocks have been synced
* Updated tests
* Only take required number of headers from the stream
* Simplified stage complete check
* Add preferred nodes to config
* Add preferred nodes on boot
* Add flag in config for trusted only mode
* Add preferred nodes configuration to config
* Fix comment
* Add preferred nodes to config file
* Rename preferred_nodes to trusted_nodes
* Change preferred to trusted
I renamed preferred_nodes to trusted_nodes in various places.
Seems I missed quite a bit of them.
* Pull trusted_only from config
* Rename DiscoveryConfig to PeersConfig
* Fix last commit
Now actually renamed DiscoveryConfig
* Rename trusted_only to connect_trusted_nodes_only
* Add helper function
* Use HashSet for boot_nodes and trusted_nodes
* Change trusted nodes functions in ConfigBuilder
* Move trusted peers from discv4 to network config
* Add trusted nodes to peers on Manager creation
* Use NodeRecord in trusted_nodes config
* Fix comment
* Move trusted_nodes config to PeersConfig
* Add trusted nodes directly to peers
* Move network_config to Config impl
* Move start_network to NetworkConfig impl
* replaced template blocks with code blocks in stages chapter
* replaced template blocks with code blocks in network chapter
* moved book sections to docs
* fix indentation in recover_signer codeblock
* remove unnecessary TODO comment in network.md
* WIP FOR DRAFT PR
* WIP draft, walking through usage in pipeline
* diving deeper into instantiation of NetworkHandle & FetchClient
* WIP network management task & eth requests task done (ish)
* address pr comments: networkmanager as standalone task, networkconfig as main entrypoint for setup
* complete draft of the crate docs
* restructured, starts w/ expl of
* added more snippets/anchors
* using ignore flag on code blocks, brief explanation of struct
* typos addressed
* Add serde support to NodeRecord
* Move NodeRecord to primitives
along with NodeKey and Octets
* Reexport NodeRecord from discv4
* Move NodeKey and kad_key back to discv4::node
Also, move NodeRecord::key functionality to a helper function: discv4::node::record_key.
This avoids the discv5 dependency in the primitives crate.
* Fix NodeRecord (de)serializing
The default derive macros work with a dictionary like display.
Changed that to serde_with macros, that use Display and FromStr traits.
* Add some tests for NodeRecord (de)serializing
* Hide NodeKey struct
* Move Octets after NodeRecord
* Replace record_key with From trait
* Fix clippy error
unnecessary into()
* Added framework and start to draft for stages, stopping here to get feedback on approach before pushing forward
* Update README.md
Fixing some wording / grammar.
* Fixing grammar/wording.
* Added note about non-exhaustive stages list, fixed grammar, fixed State exectuion function name, updated language to reflect that the stream yields a SealedHeader and added language to describe that the initial header validation is only a basic validation.
* updated stages chapter, added bodies, senders, execution, next chapter prelude
* typo
* Added line numbers to code snippets for the stages chapter of the reth book
* address reverse header download + other nits
* add note about book hosting
* tweaked wording, formatting
* Address typo "staring"
* Address typo "HeadderDownloader"
* consolidated book.toml
* updating snippets in stages chapter to ignore errors
* reviewing db crate, starting draft
* Added framework and draft for db chapter
* reformatting to be more readable
* added DbTx and DbTxMut
* updating language, structure of chapter
* restructured chapter to be a more logical read, covered the nested traits throughout the Database trait, added section about cursors.
* wording, header sizes
* updated spacing between headers and sections
* wording
* updated db chapter
* added links to code snippets
* added additional links to code snippets
* removed dup table in list of tables
* updated code snippet and link in codebase
* Update book/db/README.md
Co-authored-by: Andrew Kirillov <20803092+akirillo@users.noreply.github.com>
* updated chapter to mention how Transactions deref trait works to access DbTx::get()
* wording
* fixed typo
* Added a note about the encode and decode traits
* Added a note about the compress and decompress traits
* fixing issues with merge
* removed repetitive example
* a word
Co-authored-by: Andrew Kirillov <andrew@paradigm.xyz>
Co-authored-by: Andrew Kirillov <20803092+akirillo@users.noreply.github.com>