Elixium Core v0.6.3 Elixium.Node.LedgerManager View Source

Handles high level decision logic for forking, saving, and relaying blocks.

Link to this section Summary

Functions

Decide what to do when we’ve received a new block. All block persistence logic is handled internally; this returns an atom describing what the peer handler should do with this block

Link to this section Functions

Link to this function handle_new_block(block) View Source
handle_new_block(Elixium.Block) ::
  :ok | :gossip | :ignore | :invalid | {:missing_blocks, list()}

Decide what to do when we’ve received a new block. All block persistence logic is handled internally; this returns an atom describing what the peer handler should do with this block.