-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added docs to prunned_utreexo module and its submodules #401
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! A few comments
//! The chain state contains both the blocks and blockchain validation logic | ||
//! | ||
//! This module provides the implementation of Bitcoin's consensus rules and chain validation, | ||
//! enabling verification of transactions and blocks. It maintains: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically this is not correct for the module, the consensus rules for validating transactions and blocks are not here but in consensus.rs
.
You should explain here that this module is centered around the ChainState
type, which implements BlockchainInterface
and UpdatableChainstate
, meaning it is a Chain
backend for the node, which:
- Keeps track of the chain state, and uses a
ChainStore
for persisted storage - Updates such state with the help of the consensus functions implemented in
consensus.rs
- Can interface with other components, and provide data about the current view of the chain
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this out!
06ceb78
to
6ba5ba3
Compare
6ba5ba3
to
87dfa8a
Compare
What is the purpose of this pull request?
Which crates are being modified?
Description
I added missing docs to Floresta Chain crate, prunned utreexo module and its submodules to help on #376 .
Notes to the reviewers
I avoided adding the docs for the structs inside each submodule to make it easier for review.
Checklist
just lint
cargo test
Images of differences bellow