Show / Hide Table of Contents

Class TrieMetadata

Inheritance
Object
TrieMetadata
Implements
Bencodex.IBencodable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Libplanet.Store.Trie
Assembly: Libplanet.Store.dll
Syntax
public class TrieMetadata : IBencodable

Constructors

| Improve this Doc View Source

TrieMetadata(IValue)

Declaration
public TrieMetadata(IValue bencoded)
Parameters
Type Name Description
Bencodex.Types.IValue bencoded
| Improve this Doc View Source

TrieMetadata(Int32)

Creates a TrieMetadata instance.

Declaration
public TrieMetadata(int version)
Parameters
Type Name Description
Int32 version

The version of the TrieMetadata to create. This must equal to the version of IPreEvaluationBlock that is under evaluation.

Exceptions
Type Condition
ArgumentException

Thrown when either version is less than WorldStateProtocolVersion or greater than CurrentProtocolVersion.

Properties

| Improve this Doc View Source

Bencoded

Declaration
public IValue Bencoded { get; }
Property Value
Type Description
Bencodex.Types.IValue
| Improve this Doc View Source

Version

Declaration
public int Version { get; }
Property Value
Type Description
Int32

Implements

Bencodex.IBencodable
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium