Class ValidatorSetAccount
A special "account" for managing ValidatorSet starting with ValidatorSetAccountProtocolVersion.
Inheritance
System.Object
ValidatorSetAccount
Namespace: Libplanet.Action.State
Assembly: Libplanet.Action.dll
Syntax
public class ValidatorSetAccount : object
Constructors
| Improve this Doc View SourceValidatorSetAccount(ITrie, Int32)
A special "account" for managing ValidatorSet starting with ValidatorSetAccountProtocolVersion.
Declaration
public ValidatorSetAccount(ITrie trie, int worldVersion)
Parameters
| Type | Name | Description |
|---|---|---|
| ITrie | trie | |
| System.Int32 | worldVersion |
Fields
| Improve this Doc View SourceValidatorSetAddress
The Address location within the account where a ValidatorSet gets stored.
Declaration
public static readonly Address ValidatorSetAddress
Field Value
| Type | Description |
|---|---|
| Address |
Properties
| Improve this Doc View SourceTrie
A special "account" for managing ValidatorSet starting with ValidatorSetAccountProtocolVersion.
Declaration
public ITrie Trie { get; }
Property Value
| Type | Description |
|---|---|
| ITrie |
WorldVersion
A special "account" for managing ValidatorSet starting with ValidatorSetAccountProtocolVersion.
Declaration
public int WorldVersion { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
| Improve this Doc View SourceAsAccount()
Converts to an IAccount so it can be set to an IWorld using SetAccount(Address, IAccount).
Declaration
public IAccount AsAccount()
Returns
| Type | Description |
|---|---|
| IAccount |
GetValidatorSet()
A special "account" for managing ValidatorSet starting with ValidatorSetAccountProtocolVersion.
Declaration
public ValidatorSet GetValidatorSet()
Returns
| Type | Description |
|---|---|
| ValidatorSet |
SetValidatorSet(ValidatorSet)
A special "account" for managing ValidatorSet starting with ValidatorSetAccountProtocolVersion.
Declaration
public ValidatorSetAccount SetValidatorSet(ValidatorSet validatorSet)
Parameters
| Type | Name | Description |
|---|---|---|
| ValidatorSet | validatorSet |
Returns
| Type | Description |
|---|---|
| ValidatorSetAccount |