Class InvalidBlockTxHashException
Inherited Members
System.Exception.GetBaseException()
System.Exception.HelpLink
System.Exception.InnerException
System.Exception.Message
System.Exception.SerializeObjectState
System.Object.Equals(System.Object, System.Object)
Namespace: Libplanet.Types.Blocks
Assembly: Libplanet.Types.dll
Syntax
[Serializable]
public class InvalidBlockTxHashException : InvalidBlockException, ISerializable, IEquatable<InvalidBlockTxHashException>
Constructors
| Improve this Doc View SourceInvalidBlockTxHashException(SerializationInfo, StreamingContext)
Declaration
protected InvalidBlockTxHashException(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | |
| StreamingContext | context |
InvalidBlockTxHashException(String, Nullable<HashDigest<SHA256>>, Nullable<HashDigest<SHA256>>)
Initializes a new instance of InvalidBlockTxHashException class.
Declaration
public InvalidBlockTxHashException(string message, HashDigest<SHA256>? blockTxHash, HashDigest<SHA256>? calculatedTxHash)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message | The message that describes the error. |
| Nullable<HashDigest<SHA256>> | blockTxHash | The hash digest of TxHash. |
| Nullable<HashDigest<SHA256>> | calculatedTxHash | The calculated hash digest from Transactions. |
Properties
| Improve this Doc View SourceBlockTxHash
The hash digest from actual block.
Declaration
public HashDigest<SHA256>? BlockTxHash { get; }
Property Value
| Type | Description |
|---|---|
| Nullable<HashDigest<SHA256>> |
CalculatedTxHash
The calculated hash digest from transactions in the block.
Declaration
public HashDigest<SHA256>? CalculatedTxHash { get; }
Property Value
| Type | Description |
|---|---|
| Nullable<HashDigest<SHA256>> |
Methods
| Improve this Doc View SourceEquals(InvalidBlockTxHashException)
Declaration
public bool Equals(InvalidBlockTxHashException other)
Parameters
| Type | Name | Description |
|---|---|---|
| InvalidBlockTxHashException | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | obj |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 |
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | |
| StreamingContext | context |
Overrides
Operators
| Improve this Doc View SourceEquality(InvalidBlockTxHashException, InvalidBlockTxHashException)
Declaration
public static bool operator ==(InvalidBlockTxHashException left, InvalidBlockTxHashException right)
Parameters
| Type | Name | Description |
|---|---|---|
| InvalidBlockTxHashException | left | |
| InvalidBlockTxHashException | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inequality(InvalidBlockTxHashException, InvalidBlockTxHashException)
Declaration
public static bool operator !=(InvalidBlockTxHashException left, InvalidBlockTxHashException right)
Parameters
| Type | Name | Description |
|---|---|---|
| InvalidBlockTxHashException | left | |
| InvalidBlockTxHashException | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |