Class ValidatorStateExtensions
Inherited Members
Namespace: Libplanet.Action
Assembly: Libplanet.dll
Syntax
public static class ValidatorStateExtensions
Methods
| Improve this Doc View SourceGetValidatorSet(IAccountStateDelta)
Declaration
public static ValidatorSet GetValidatorSet(this IAccountStateDelta delta)
Parameters
Type | Name | Description |
---|---|---|
IAccountStateDelta | delta |
Returns
Type | Description |
---|---|
ValidatorSet |
SetValidator(IAccountStateDelta, Validator)
Sets validator
to the stored ValidatorSet.
If 0 is given as its power, removes the validator from the ValidatorSet.
Declaration
public static IAccountStateDelta SetValidator(this IAccountStateDelta delta, Validator validator)
Parameters
Type | Name | Description |
---|---|---|
IAccountStateDelta | delta | The target IAccountStateDelta instance. |
Validator | validator | The Validator instance to write. |
Returns
Type | Description |
---|---|
IAccountStateDelta | A new IAccountStateDelta instance with
|