UltraDark Core v0.1.0 UltraDark.Blockchain View Source

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(), UltraDark.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