Show / Hide Table of Contents

Class NullBlockPolicy

Inheritance
Object
NullBlockPolicy
Implements
IBlockPolicy
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Libplanet.Blockchain.Policies
Assembly: Libplanet.dll
Syntax
public class NullBlockPolicy : IBlockPolicy

Constructors

| Improve this Doc View Source

NullBlockPolicy(BlockPolicyViolationException, Int64)

Declaration
public NullBlockPolicy(BlockPolicyViolationException exceptionToThrow = null, long difficulty = 1L)
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

FeeCalculator

Declaration
public IFeeCalculator FeeCalculator { get; }
Property Value
Type Description
IFeeCalculator

Methods

| Improve this Doc View Source

GetMaxTransactionsBytes(Int64)

Declaration
public long GetMaxTransactionsBytes(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

ValidateNextBlock(BlockChain, Block)

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

ValidateNextBlockTx(BlockChain, Transaction)

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

Implements

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