Elixium Core v0.1.3 Elixium.Ledger View Source
Provides an interface for interacting with the blockchain stored within LevelDB. This is where blocks are stored and fetched
Link to this section Summary
Functions
Add a block to leveldb, indexing it by its hash (this is the most likely piece of data to be unique)
Given a block hash, return its contents
Return the whole chain from leveldb
Link to this section Functions
Add a block to leveldb, indexing it by its hash (this is the most likely piece of data to be unique)
Link to this function
retrieve_block(hash)
View Source
retrieve_block(String.t()) :: Elixium.Blockchain.Block
Given a block hash, return its contents
Return the whole chain from leveldb