Delegate StateCompleter<T>
A delegate to be called when GetState(Address, Nullable<HashDigest<SHA256>>, StateCompleter<T>) method encounters a block having incomplete dirty states. GetState(Address, Nullable<HashDigest<SHA256>>, StateCompleter<T>) method returns this delegate's return value instead for such case.
Namespace: Libplanet.Blockchain
Assembly: Libplanet.dll
Syntax
public delegate IValue StateCompleter<T>(BlockChain<T> blockChain, HashDigest<SHA256> blockHash, Address address)
where T : IAction, new();
Parameters
Type | Name | Description |
---|---|---|
BlockChain<T> | blockChain | The blockchain to query. |
HashDigest<SHA256> | blockHash | The hash of a block to lacks its dirty states. |
Address | address | The address to query its state value. |
Returns
Type | Description |
---|---|
IValue | A complement state. This can be |
Type Parameters
Name | Description |
---|---|
T | An IAction type. It should match to BlockChain<T>'s type parameter. |