Function Ledger.acceptBlock
Attempt to add a block to the Ledger
.
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
Name | Description |
---|---|
block | the block to add |
Returns
an error message if the block is not accepted, otherwise null