Class NodeStatus
NodeStatus contains the information about a node status
Inheritance
Inherited Members
Namespace: Algorand.Algod.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class NodeStatus : IEquatable<NodeStatus>, IValidatableObject
Constructors
| Improve this Doc View SourceNodeStatus(Nullable<Int64>, Nullable<Boolean>, String, Nullable<UInt64>, String, Nullable<UInt64>, Nullable<Boolean>, Nullable<Int64>)
Initializes a new instance of the NodeStatus class.
Declaration
public NodeStatus(long? catchupTime = default(long? ), bool? hasSyncedSinceStartup = default(bool? ), string lastConsensusVersion = null, ulong? lastRound = default(ulong? ), string nextConsensusVersion = null, ulong? nextConsensusVersionRound = default(ulong? ), bool? nextConsensusVersionSupported = default(bool? ), long? timeSinceLastRound = default(long? ))
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int64> | catchupTime | CatchupTime in nanoseconds (required). |
System.Nullable<System.Boolean> | hasSyncedSinceStartup | HasSyncedSinceStartup indicates whether a round has completed since startup (required). |
System.String | lastConsensusVersion | LastVersion indicates the last consensus version supported (required). |
System.Nullable<System.UInt64> | lastRound | LastRound indicates the last round seen (required). |
System.String | nextConsensusVersion | NextVersion of consensus protocol to use (required). |
System.Nullable<System.UInt64> | nextConsensusVersionRound | NextVersionRound is the round at which the next consensus version will apply (required). |
System.Nullable<System.Boolean> | nextConsensusVersionSupported | NextVersionSupported indicates whether the next consensus version is supported by this node (required). |
System.Nullable<System.Int64> | timeSinceLastRound | TimeSinceLastRound in nanoseconds (required). |
Properties
| Improve this Doc View SourceCatchupTime
CatchupTime in nanoseconds
Declaration
[DataMember(Name = "catchupTime", EmitDefaultValue = false)]
public long? CatchupTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | CatchupTime in nanoseconds |
HasSyncedSinceStartup
HasSyncedSinceStartup indicates whether a round has completed since startup
Declaration
[DataMember(Name = "hasSyncedSinceStartup", EmitDefaultValue = false)]
public bool? HasSyncedSinceStartup { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | HasSyncedSinceStartup indicates whether a round has completed since startup |
LastConsensusVersion
LastVersion indicates the last consensus version supported
Declaration
[DataMember(Name = "lastConsensusVersion", EmitDefaultValue = false)]
public string LastConsensusVersion { get; set; }
Property Value
Type | Description |
---|---|
System.String | LastVersion indicates the last consensus version supported |
LastRound
LastRound indicates the last round seen
Declaration
[DataMember(Name = "lastRound", EmitDefaultValue = false)]
public ulong? LastRound { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | LastRound indicates the last round seen |
NextConsensusVersion
NextVersion of consensus protocol to use
Declaration
[DataMember(Name = "nextConsensusVersion", EmitDefaultValue = false)]
public string NextConsensusVersion { get; set; }
Property Value
Type | Description |
---|---|
System.String | NextVersion of consensus protocol to use |
NextConsensusVersionRound
NextVersionRound is the round at which the next consensus version will apply
Declaration
[DataMember(Name = "nextConsensusVersionRound", EmitDefaultValue = false)]
public ulong? NextConsensusVersionRound { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | NextVersionRound is the round at which the next consensus version will apply |
NextConsensusVersionSupported
NextVersionSupported indicates whether the next consensus version is supported by this node
Declaration
[DataMember(Name = "nextConsensusVersionSupported", EmitDefaultValue = false)]
public bool? NextConsensusVersionSupported { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | NextVersionSupported indicates whether the next consensus version is supported by this node |
TimeSinceLastRound
TimeSinceLastRound in nanoseconds
Declaration
[DataMember(Name = "timeSinceLastRound", EmitDefaultValue = false)]
public long? TimeSinceLastRound { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | TimeSinceLastRound in nanoseconds |
Methods
| Improve this Doc View SourceEquals(NodeStatus)
Returns true if NodeStatus instances are equal
Declaration
public bool Equals(NodeStatus input)
Parameters
Type | Name | Description |
---|---|---|
NodeStatus | input | Instance of NodeStatus to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIValidatableObject.Validate(ValidationContext)
To validate all properties of the instance
Declaration
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.DataAnnotations.ValidationContext | validationContext | Validation context |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> | Validation Result |