Show / Hide Table of Contents

Class NullBlockPolicy<T>

Inheritance
Object
NullBlockPolicy<T>
Implements
IBlockPolicy<T>
Namespace: Libplanet.Blockchain.Policies
Assembly: Libplanet.dll
Syntax
public class NullBlockPolicy<T> : object, IBlockPolicy<T> where T : IAction, new()
Type Parameters
Name Description
T

Constructors

| Improve this Doc View Source

NullBlockPolicy(BlockPolicyViolationException, Int64)

Declaration
public NullBlockPolicy(BlockPolicyViolationException exceptionToThrow = null, long difficulty = null)
Parameters
Type Name Description
BlockPolicyViolationException exceptionToThrow
Int64 difficulty

Properties

| Improve this Doc View Source

BlockAction

Declaration
public IAction BlockAction { get; }
Property Value
Type Description
IAction
| Improve this Doc View Source

BlockedMiners

Declaration
public ISet<Address> BlockedMiners { get; }
Property Value
Type Description
ISet<Address>
| Improve this Doc View Source

CanonicalChainComparer

Declaration
public IComparer<IBlockExcerpt> CanonicalChainComparer { get; }
Property Value
Type Description
IComparer<IBlockExcerpt>
| Improve this Doc View Source

NativeTokens

A fixed set of Currency objects that are supported by the blockchain as first-class assets.

Declaration
public IImmutableSet<Currency> NativeTokens { get; }
Property Value
Type Description
IImmutableSet<Currency>

Methods

| Improve this Doc View Source

GetMaxBlockBytes(Int64)

Declaration
public long GetMaxBlockBytes(long index)
Parameters
Type Name Description
Int64 index
Returns
Type Description
Int64
| Improve this Doc View Source

GetMaxTransactionsPerBlock(Int64)

Declaration
public int GetMaxTransactionsPerBlock(long index)
Parameters
Type Name Description
Int64 index
Returns
Type Description
Int32
| Improve this Doc View Source

GetMaxTransactionsPerSignerPerBlock(Int64)

Declaration
public int GetMaxTransactionsPerSignerPerBlock(long index)
Parameters
Type Name Description
Int64 index
Returns
Type Description
Int32
| Improve this Doc View Source

GetMinTransactionsPerBlock(Int64)

Declaration
public int GetMinTransactionsPerBlock(long index)
Parameters
Type Name Description
Int64 index
Returns
Type Description
Int32
| Improve this Doc View Source

GetNextBlockDifficulty(BlockChain<T>)

Declaration
public virtual long GetNextBlockDifficulty(BlockChain<T> blockChain)
Parameters
Type Name Description
BlockChain<T> blockChain
Returns
Type Description
Int64
| Improve this Doc View Source

ValidateNextBlock(BlockChain<T>, Block<T>)

Declaration
public virtual BlockPolicyViolationException ValidateNextBlock(BlockChain<T> blockChain, Block<T> nextBlock)
Parameters
Type Name Description
BlockChain<T> blockChain
Block<T> nextBlock
Returns
Type Description
BlockPolicyViolationException
| Improve this Doc View Source

ValidateNextBlockTx(BlockChain<T>, Transaction<T>)

Declaration
public virtual TxPolicyViolationException ValidateNextBlockTx(BlockChain<T> blockChain, Transaction<T> transaction)
Parameters
Type Name Description
BlockChain<T> blockChain
Transaction<T> transaction
Returns
Type Description
TxPolicyViolationException

Implements

IBlockPolicy<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2022 Planetarium