Show / Hide Table of Contents

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 Source

ValidatorSetAccount(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 Source

ValidatorSetAddress

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 Source

Trie

A special "account" for managing ValidatorSet starting with ValidatorSetAccountProtocolVersion.

Declaration
public ITrie Trie { get; }
Property Value
Type Description
ITrie
| Improve this Doc View Source

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 Source

AsAccount()

Converts to an IAccount so it can be set to an IWorld using SetAccount(Address, IAccount).

Declaration
public IAccount AsAccount()
Returns
Type Description
IAccount

An IAccount with Trie as its underlying Trie.

| Improve this Doc View Source

GetValidatorSet()

A special "account" for managing ValidatorSet starting with ValidatorSetAccountProtocolVersion.

Declaration
public ValidatorSet GetValidatorSet()
Returns
Type Description
ValidatorSet
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium