Class InvalidTxNonceException
An exception that is thrown when the Nonce
of a Transaction included in a Block
is inconsistent with the expected nonce for the Signer
when appending to a
Inherited Members
Namespace: Libplanet.Types.Tx
Assembly: Libplanet.Types.dll
Syntax
public sealed class InvalidTxNonceException : InvalidTxException
Constructors
| Improve this Doc View SourceInvalidTxNonceException(String, TxId, Int64, Int64)
Initializes a new instance of the InvalidTxNonceException class.
Declaration
public InvalidTxNonceException(string message, TxId txId, long expectedNonce, long improperNonce)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
TxId | txId | The invalid Transaction's
Id. It is automatically included to
the |
System.Int64 | expectedNonce | The expected Nonce value for the Transaction. |
System.Int64 | improperNonce | The actual Nonce. |
Properties
| Improve this Doc View SourceExpectedNonce
The expected Nonce value for the Transaction with TxId as its Id.
Declaration
public long ExpectedNonce { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
ImproperNonce
The actual Nonce, which is improper.
Declaration
public long ImproperNonce { get; }
Property Value
Type | Description |
---|---|
System.Int64 |