Skip to content

Commit

Permalink
docs: add a few clarifying docs (#2310)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Apr 20, 2023
1 parent 3b0dd3f commit 64e3a57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crates/storage/provider/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ use std::collections::BTreeMap;
/// Used inside the BlockchainTree.
#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct Chain {
/// The state of accounts after execution of the blocks in this chain (tip of the chain).
/// The state of all accounts after execution of the _all_ blocks in this chain's range from
/// [Chain::first] to [Chain::tip], inclusive.
///
/// This state also contains the individual changes that lead to the current state.
pub state: PostState,
Expand Down
2 changes: 1 addition & 1 deletion crates/storage/provider/src/post_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ impl PostState {
}
}

/// Get the latest state of accounts.
/// Get the latest state of all changed accounts.
pub fn accounts(&self) -> &BTreeMap<Address, Option<Account>> {
&self.accounts
}
Expand Down

0 comments on commit 64e3a57

Please sign in to comment.