bitcoin-hs-0.0.1: Partial implementation of the Bitcoin protocol (as of 2013)

Safe HaskellNone
LanguageHaskell98

Bitcoin.BlockChain.Cache

Description

Caching recently used blocks

Synopsis

Documentation

data BlockCache script Source #

Constructors

BlockCache 

Fields

theBlockCacheSize :: Int Source #

How many blocks we cache (128 at the moment)

theBlockCacheCompactLimit :: Int Source #

if the largest key (approx equals the number of lookups) reaches this limit, we compactify

theBlockCache :: MVar (BlockCache RawScript) Source #

The global block cache