Function Ledger.validateBlock

Check whether the block is valid.

string validateBlock (
  in ref const(Block) block
) nothrow @safe;

Parameters

NameDescription
block the block to check

Returns

an error message if the block validation failed, otherwise null