blockchain_stack

Function blockchain_stack 

Source
pub fn blockchain_stack(
    path: PathBuf,
) -> Result<MetricsBlockStore<DedupBlockStore<BloomBlockStore<CachedBlockStore<SledBlockStore>>>>>
Expand description

Create a blockchain storage stack

Optimized for blockchain data:

  • No TTL (permanent storage)
  • Large bloom filter for fast lookups
  • Medium cache for recent blocks
  • Deduplication for transactions
  • Metrics for monitoring

Best for: Blockchain nodes, distributed ledgers, immutable data