Expand description
The nodeโs position on the chain, which telemetry backends attach to the signals they send.
The sync progress task records it in every build, whichever backends are compiled in.
Structsยง
- Chain
Position ๐ - The nodeโs position on the chain when the progress task last checked.
Constantsยง
- UNKNOWN_
TIP_ ๐HEIGHT - Above
Height::MAX, so it is never a real height.
Staticsยง
- NEAR_
TIP ๐ - Whether the syncer was close to the chain tip when the progress task last checked.
- NETWORK ๐
- The network this node runs on, once
zebrad startor the progress task records it. - TIP_
HEIGHT ๐ - The best chain tip height, or
UNKNOWN_TIP_HEIGHTuntil the progress task records one.
Functionsยง
- chain_
position ๐ - Returns the nodeโs position on the chain, once the progress task has recorded one.
- network ๐
- Returns the network this node runs on, once it has been recorded.
- record ๐
- Records the best chain tip height on
network, and whether the syncer is close to the tip. - set_
network ๐ - Records the network this node runs on. A node only runs on one network, so later calls keep the first one.