mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-05 04:25:03 -05:00
docs: add a few clarifying docs (#2310)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user