Function ValidatorSet.add
Add a enrollment data to the validators set
string add
(
in const(Height) height,
scope nothrow @safe bool delegate(in ref geod24 .bitblob .BitBlob!(64L), out UTXO) finder,
scope nothrow @safe Amount delegate(geod24 .bitblob .BitBlob!(64L)) getPenaltyDeposit,
in ref const(Enrollment) enroll,
in ref const(PublicKey) pubkey
) @safe;
If a later preimage has not already been stored for this validator then add the preimage that is used for the enrollment commitment
Parameters
Name | Description |
---|---|
height | the current block height in the ledger |
finder | the delegate to find UTXOs with |
enroll | the enrollment data to add |
pubkey | the public key of the enrollment |
Returns
A string describing the error, or null
on success