Show / Hide Table of Contents

Interface IActionEvaluator

Namespace: Libplanet.Action
Assembly: Libplanet.Action.dll
Syntax
public interface IActionEvaluator

Properties

| Improve this Doc View Source

ActionLoader

The IActionLoader used by this IActionEvaluator when evaluating Blocks.

Declaration
IActionLoader ActionLoader { get; }
Property Value
Type Description
IActionLoader

Methods

| Improve this Doc View Source

Evaluate(IPreEvaluationBlock, Nullable<HashDigest<SHA256>>)

The main entry point for evaluating a IPreEvaluationBlock.

Declaration
IReadOnlyList<ICommittedActionEvaluation> Evaluate(IPreEvaluationBlock block, HashDigest<SHA256>? baseStateRootHash)
Parameters
Type Name Description
IPreEvaluationBlock block

The block to evaluate.

System.Nullable<HashDigest<SHA256>> baseStateRootHash

The base state to use when evaluating block.

Returns
Type Description
IReadOnlyList<ICommittedActionEvaluation>

The result of evaluating every IAction related to block as an of ICommittedActionEvaluations.

Remarks

This has a side-effect of writing data to internally held IStateStore.

First evaluates all IActions in Transactions of block and appends the evaluation of the held by the instance at the end.

Exceptions
Type Condition
BlockProtocolVersionNotSupportedException

Thrown when block has a that is not supported by an implementation of IActionEvaluator.

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