bitcoin-elixir v0.0.2 Bitcoin.Node.Storage
Handles blocks and transactions persistance.
This module is responsible for logic of storage, engine below should only do simple tasks.
TODO ponder we want validation to be done in the specific blockchain context, which Storage GenServer could provide (at least for blocks storage), but not sure if blocking whole storage for the whole validation time is a good idea. Maybe just put blocks storage inside GenServer (remember timeout)?
Summary
Functions
block_height(block_hash)
block_height(Bitcoin.Block.t_hash | Bitcoin.Protocol.Messages.Block.t) :: non_neg_integer | :error