Show / Hide Table of Contents

Namespace Libplanet.Blockchain.Policies

Classes

BlockPolicy<T>

A default implementation of IBlockPolicy<T> interface.

DifficultyAdjustment<T>

NullBlockPolicy<T>

VolatileStagePolicy<T>

An in memory implementation of the IStagePolicy<T>.

This implementation holds on to every unconfirmed Transaction<T> except for the following reasons:

  • A Transaction<T> has been specifically marked to be ignored due to Transaction<T> not being valid.
  • A Transaction<T> has expired due to its staleness.

Additionally, any Transaction<T> with a lower nonce than that of returned by the BlockChain<T> is masked and filtered by default.

Interfaces

IBlockPolicy<T>

An interface to determine if consecutive Block<T>s are valid.

An implementation of this interface should perform all policy dependent checks, such as whether a Block<T> has the right difficulty, a Transaction<T> has the right signer, etc.

IStagePolicy<T>

An interface to configure a BlockChain<T>'s strategy to deal with staged transactions.

In This Article
Back to top Copyright © 2018–2022 Planetarium