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
[Pure]
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
[Pure]
IReadOnlyList<ICommittedActionEvaluation> Evaluate(IPreEvaluationBlock block, HashDigest<SHA256>? baseStateRootHash)
Parameters
Type Name Description
IPreEvaluationBlock block

The block to evaluate.

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 IReadOnlyList<T> 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.

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