Elixium Core v0.2.2 Elixium.Validator View Source
Responsible for implementing the consensus rules to all blocks and transactions
Link to this section Summary
Functions
A block is considered valid if the index is greater than the index of the previous block, the previous_hash is equal to the hash of the previous block, and the hash of the block, when recalculated, is the same as what the listed block hash is
Link to this section Functions
A block is considered valid if the index is greater than the index of the previous block, the previous_hash is equal to the hash of the previous block, and the hash of the block, when recalculated, is the same as what the listed block hash is
Link to this function
valid_coinbase?(map)
View Source
valid_coinbase?(Elixium.Blockchain.Block) :: :ok | {:error, :no_coinbase}
Link to this function
valid_transaction?(map)
View Source
valid_transaction?(Transaction) :: boolean()
Link to this function
valid_transactions?(map)
View Source
valid_transactions?(Elixium.Blockchain.Block) :: :ok | {:error, :invalid_inputs}