Elixium Core v0.2.2 Elixium.Blockchain View Source

Wrapper functions for interacting with the blockchain on a high level

Link to this section Summary

Functions

Adds the latest block to the beginning of the blockchain

Creates a List with a genesis block in it or returns the existing blockchain

Link to this section Functions

Link to this function add_block(chain, block) View Source
add_block(list(), Elixium.Blockchain.Block) :: list()

Adds the latest block to the beginning of the blockchain

Creates a List with a genesis block in it or returns the existing blockchain

Link to this function recalculate_difficulty(chain) View Source