HeaderSyncStatus class
Where header sync stands: the chain's height, the height its peers reported, and whether it has caught up with them.
The actor system is ready before its headers are: wallets can be created and payments made at once, and a payment whose block header has not arrived yet waits for it. synced is how an application tells when that wait is over for the chain as a whole (bead libspiffy-ndfr).
Constructors
- HeaderSyncStatus({required int height, required int networkHeight, required bool synced, required int peerCount})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → int
-
Height of the active chain's tip.
final
- networkHeight → int
-
The higher of height and the heights the connected peers reported
in their version handshake, as
LibSpiffyActorSystem.networkHeight; 0 while no peer reported one. A peer's handshake height is from when it connected, so this is for showing progress; synced is the verdict.final - peerCount → int
-
Peers connected now. With none, nothing syncs: P2P is disabled, or
every peer has dropped and the system is dialling again.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- synced → bool
-
Whether the last answer a peer gave header sync held fewer headers
than a full batch (2,000): the peer had nothing more after them.
False until the first answer, and while a sync from far behind is
still receiving full batches.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override