Skip to content

Problem instantate BlockChain without domain-specific IActionEvalautor. #3977

@riemannulus

Description

@riemannulus

Context

else
{
_nextStateRootHash =
DetermineNextBlockStateRootHash(Tip, out var actionEvaluations);
IEnumerable<TxExecution> txExecutions = MakeTxExecutions(Tip, actionEvaluations);
UpdateTxExecutions(txExecutions);
}

BlockChain.BlockChain must run IActionEvalautor.Execute() when initiated.
But when we want to open the BlockChain read-only version, Even though it is a non-domain-dependent class, it has domain-dependent dependencies.

Rationale

We need to add a boolean flag to BlockChain.BlockChain so the user can bypass the feature if the user doesn't want it.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions