Module: Bitcoin::Store

Defined in:
lib/bitcoin/store.rb,
lib/bitcoin/store/db.rb,
lib/bitcoin/store/utxo_db.rb,
lib/bitcoin/store/spv_chain.rb,
lib/bitcoin/store/chain_entry.rb,
lib/bitcoin/store/db/level_db.rb

Defined Under Namespace

Modules: DB Classes: ChainEntry, SPVChain, UtxoDB

Constant Summary collapse

KEY_PREFIX =
{
    entry: 'e',   # key: block hash, value: Bitcoin::Store::ChainEntry payload
    height: 'h',  # key: block height, value: block hash.
    best: 'B',    # value: best block hash.
    next: 'n'     # key: block hash, value: A hash of the next block of the specified hash
}