Skip to content

Slot ​

Struct

Source: NetCounter.h

Description ​

One node's accumulated contribution to the shared value.

cursor is the serial number of the last operation applied from this node. It survives normal operation, is exported in a snapshot and reset when the node advertises a new boot generation, because a reboot starts a fresh sequence space. The local slot's cursor stays 0: it tracks inbound operations, and a node never applies its own.

Properties ​

NameTypeDescription
valueint32_tSum of the deltas applied from this node.
cursoruint32_tLast applied sequence from this node.
bootIduint16_tNode boot generation, learned from peerInfo.
nodeIduint8_tApplication label that owns this slot.
usedboolfalse when the slot was never allocated.

Released under the MIT License.