Function Nominator.this
Constructor
this
(
immutable(ConsensusParams) params,
KeyPair key_pair,
Clock clock,
NetworkManager network,
ValidatingLedger ledger,
EnrollmentManager enroll_man,
ITaskManager taskman,
ITimer catchup_timer,
ManagedDatabase cacheDB,
core .time .Duration nomination_interval,
@safe string delegate(in ref Block) externalize
);
Parameters
Name | Description |
---|---|
params | consensus params |
key_pair | the key pair of this node |
clock | clock instance |
network | the network manager for gossiping SCP messages |
ledger | needed for SCP state restoration & block validation |
enroll_man | used to look up the commitment & preimages |
taskman | used to run timers |
data_dir | path to the data directory |
nomination_interval | How often to trigger checkNominate |
externalize | delegate called when a block is to be externalized |