Function Ledger.acceptBlock

Attempt to add a block to the Ledger.

string acceptBlock (
  in ref const(Block) block
) @safe;

The block should have a majority of signature to be added, and will then be validated (via validateBlock) before being externalized. If validation failes, the reason will be returned, and the Ledger will not be modifed.

Parameters

NameDescription
block the block to add

Returns

an error message if the block is not accepted, otherwise null