Function NodeLedger.this
Constructor
this
(
immutable(ConsensusParams) params,
ManagedDatabase database,
IBlockStorage storage,
EnrollmentManager enroll_man,
TransactionPool pool,
@safe void delegate(in ref Block, bool) onAcceptedBlock
);
Parameters
Name | Description |
---|---|
params | the consensus-critical constants |
database | State database |
storage | the block storage |
enroll_man | the enrollmentManager |
pool | the transaction pool |
onAcceptedBlock | optional delegate to call when a block was added to the ledger |