Crate floresta_chain
source ·Expand description
Floresta Chain
This crate provides the core validation logic for a full node using libfloresta. It is maintained as a separate crate to allow other projects to build on it, independent of the libfloresta P2P network or libfloresta wallet. The main entry point is the ChainState struct, that keeps track of the current blockchain state, like headers and utreexo accumulator.
All data is stored in a ChainStore
implementation, which is generic over the
underlying database. See the ChainStore trait for more information. For a
ready-to-use implementation, see the KvChainStore struct.
Re-exports
pub use pruned_utreexo::Notification;
pub use pruned_utreexo::chain_state::*;
pub use pruned_utreexo::chainparams::*;
pub use pruned_utreexo::chainstore::*;
pub use pruned_utreexo::error::*;
pub use pruned_utreexo::udata::*;
Modules
Macros
- Grabs a RwLock for reading
- Grabs a RwLock for writing