Class NullBlockPolicy<T>
Inheritance
NullBlockPolicy<T>
Assembly: Libplanet.dll
Syntax
public class NullBlockPolicy<T> : IBlockPolicy<T> where T : IAction, new()
Type Parameters
Constructors
|
Improve this Doc
View Source
NullBlockPolicy(BlockPolicyViolationException, Int64)
Declaration
public NullBlockPolicy(BlockPolicyViolationException exceptionToThrow = null, long difficulty = 1L)
Parameters
Properties
|
Improve this Doc
View Source
BlockAction
Declaration
public IAction BlockAction { get; }
Property Value
|
Improve this Doc
View Source
BlockedMiners
Declaration
public ISet<Address> BlockedMiners { get; }
Property Value
|
Improve this Doc
View Source
FeeCalculator
Declaration
public IFeeCalculator FeeCalculator { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetMaxTransactionsBytes(Int64)
Declaration
public long GetMaxTransactionsBytes(long index)
Parameters
Type |
Name |
Description |
Int64 |
index |
|
Returns
|
Improve this Doc
View Source
GetMaxTransactionsPerBlock(Int64)
Declaration
public int GetMaxTransactionsPerBlock(long index)
Parameters
Type |
Name |
Description |
Int64 |
index |
|
Returns
|
Improve this Doc
View Source
GetMaxTransactionsPerSignerPerBlock(Int64)
Declaration
public int GetMaxTransactionsPerSignerPerBlock(long index)
Parameters
Type |
Name |
Description |
Int64 |
index |
|
Returns
|
Improve this Doc
View Source
GetMinTransactionsPerBlock(Int64)
Declaration
public int GetMinTransactionsPerBlock(long index)
Parameters
Type |
Name |
Description |
Int64 |
index |
|
Returns
|
Improve this Doc
View Source
ValidateNextBlock(BlockChain<T>, Block)
Declaration
public virtual BlockPolicyViolationException ValidateNextBlock(BlockChain<T> blockChain, Block nextBlock)
Parameters
Returns
|
Improve this Doc
View Source
ValidateNextBlockTx(BlockChain<T>, Transaction)
Declaration
public virtual TxPolicyViolationException ValidateNextBlockTx(BlockChain<T> blockChain, Transaction transaction)
Parameters
Returns
Implements