Skip to main content

Crate bitcoin_rs_utxo

Crate bitcoin_rs_utxo 

Source
Expand description

In-memory UTXO set for bitcoin-rs.

The set is split into 256 first-byte shards. Each shard stores immutable transaction-level records in a self_cell!-pinned bumpalo::Bump arena, indexes them with hashbrown::HashTable, and guards mutation with a cache-padded parking_lot::RwLock.

Re-exports§

pub use key::UtxoBuildHasher;
pub use key::UtxoKey;
pub use record::OneUtxoOut;
pub use record::UtxoRecord;
pub use set::BlockChanges;
pub use set::UndoBatch;
pub use set::UtxoAdd;
pub use set::UtxoChangeListener;
pub use set::UtxoError;
pub use set::UtxoSet;
pub use set::UtxoSetView;
pub use shard::LiveOutput;
pub use snapshot::SnapshotLoad;
pub use snapshot::aggregate_hash;
pub use snapshot::hash_serialized_3;
pub use snapshot::read_snapshot;
pub use snapshot::write_snapshot;

Modules§

defrag
Round-robin shard defragmentation.
key
UTXO hash-table key.
record
Arena-resident UTXO records.
set
UTXO-set mutations and lookup.
shard
Shard internals.
snapshot
Native bitcoin-rs UTXO snapshot format.