Class BlockInsufficientTxsException
The exception that is thrown when a Block<T>'s Transactions Count is too small.
Implements
Inherited Members
Namespace: Libplanet.Blocks
Assembly: Libplanet.dll
Syntax
[Serializable]
public sealed class BlockInsufficientTxsException : InvalidBlockException, ISerializable
Constructors
| Improve this Doc View SourceBlockInsufficientTxsException(Int32, Int32, String)
Initializes a new instance of InvalidBlockBytesLengthException class.
Declaration
public BlockInsufficientTxsException(int transactionCount, int minTransactionsPerBlock, string message)
Parameters
Type | Name | Description |
---|---|---|
Int32 | transactionCount | The invalid Block<T>'s Transactions Count. It is automatically included to the Message string. |
Int32 | minTransactionsPerBlock | The minimum allowed transactions. It is automatically included to the Message string. |
String | message | The message that describes the error. |
Properties
| Improve this Doc View SourceMinTransactionsPerBlock
The maximum allowed length of a block in bytes.
Declaration
public int MinTransactionsPerBlock { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
See Also
| Improve this Doc View SourceTransactionCount
The bytes length of the actual block.
Declaration
public int TransactionCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |