Class BlockCommit
Implements
Bencodex.IBencodable
Inherited Members
System.Object.GetType()
Assembly: Libplanet.Types.dll
Syntax
public sealed class BlockCommit : IEquatable<BlockCommit>, IBencodable
Constructors
|
Improve this Doc
View Source
BlockCommit(IValue)
Declaration
public BlockCommit(IValue bencoded)
Parameters
Type |
Name |
Description |
Bencodex.Types.IValue |
bencoded |
|
|
Improve this Doc
View Source
BlockCommit(Int64, Int32, BlockHash, ImmutableArray<Vote>)
Declaration
public BlockCommit(long height, int round, BlockHash blockHash, ImmutableArray<Vote> votes)
Parameters
Type |
Name |
Description |
System.Int64 |
height |
The Index of the last committed
Block.
|
Int32 |
round |
The round in which a consensus was reached.
|
BlockHash |
blockHash |
The Hash of the last committed
Block.
|
System.Collections.Immutable.ImmutableArray<Vote> |
votes |
The set of Votes as a proof for the commit
of the last Block.
|
Exceptions
Properties
|
Improve this Doc
View Source
Bencoded
Declaration
[JsonIgnore]
public IValue Bencoded { get; }
Property Value
Type |
Description |
Bencodex.Types.IValue |
|
|
Improve this Doc
View Source
BlockHash
Declaration
public BlockHash BlockHash { get; }
Property Value
|
Improve this Doc
View Source
Height
Declaration
public long Height { get; }
Property Value
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
Round
Declaration
public int Round { get; }
Property Value
|
Improve this Doc
View Source
Votes
Declaration
public ImmutableArray<Vote> Votes { get; }
Property Value
Type |
Description |
System.Collections.Immutable.ImmutableArray<Vote> |
|
Methods
|
Improve this Doc
View Source
Equals(BlockCommit)
Declaration
public bool Equals(BlockCommit other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
ToHash()
Declaration
public HashDigest<SHA256> ToHash()
Returns
|
Improve this Doc
View Source
ToString()
Declaration
[Pure]
public override string ToString()
Returns
Overrides
System.Object.ToString()
Implements
Bencodex.IBencodable