Show / Hide Table of Contents

Delegate StateCompleter<T>

A delegate to be called when GetState(Address, Nullable<BlockHash>, StateCompleter<T>) method encounters a block having incomplete dirty states. GetState(Address, Nullable<BlockHash>, StateCompleter<T>) method returns this delegate's return value instead for such case.

Namespace: Libplanet.Blockchain
Assembly: Libplanet.dll
Syntax
public delegate IReadOnlyList<IValue?> StateCompleter<T>(BlockChain<T> blockChain, BlockHash blockHash, IReadOnlyList<Address> addresses)
    where T : IAction, new();
Parameters
Type Name Description
BlockChain<T> blockChain

The blockchain to query.

BlockHash blockHash

The hash of a block to lacks its dirty states.

IReadOnlyList<Address> addresses

The addresses of states to look up.

Returns
Type Description
IReadOnlyList<Nullable<IValue>>

Complement states associated to the specified addresses. The associated values are ordered in the same way to the corresponding addresses. Absent states are represented as null.

Type Parameters
Name Description
T

An IAction type. It should match to BlockChain<T>'s type parameter.

See Also

StateCompleters<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2022 Planetarium