Skip to content

Commit 7fee623

Browse files
werner-stacksgitbook-bot
authored andcommitted
GITBOOK: How to Read Signer Logs: Audit B fixes (testnet slots, bond rewards, log timing)
1 parent b4b0cb4 commit 7fee623

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎docs/operate/run-a-signer/how-to-read-signer-logs.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Successful / informational / error categories — general guidance:
2828

2929
Two different conditions decide what your signer does in a reward cycle:
3030

31-
* **Eligible for rewards:** at least 50,000 STX is delegated to your signer for the cycle. The signer is on PoX-5's per-cycle signer list and its stakers earn rewards.
31+
* **Eligible for rewards:** at least 50,000 STX is delegated to your signer for the cycle. The signer is on PoX-5's per-cycle signer list and its stakers earn rewards. Bond rewards don't depend on this threshold.
3232
* **In the signing set:** when the node builds the cycle's signer set from that list, your signer gets a weight of at least 1. Only signers in the signing set sign blocks.
3333

3434
A signer can be eligible for rewards without being in the signing set. See [How much stake gets a signer into the signing set](how-to-read-signer-logs.md#how-much-stake-gets-a-signer-into-the-signing-set).
@@ -80,7 +80,7 @@ The current cycle's instance keeps signing; the next cycle's instance takes over
8080

8181
### Signer not registered for a cycle
8282

83-
If your signer is not in a cycle's signing set, it logs this once when it checks the cycle (at the start of the cycle, or after a restart):
83+
If your signer is not in a cycle's signing set, it logs this once when it checks the cycle (during the prepare phase before that cycle starts, or after a restart):
8484

8585
```
8686
WARN [1790369680.021308] [stacks-signer/src/runloop.rs:280] [signer_runloop:30000] Signer SP11T9Q1TTZVCNF60A3R2C75NZVV3CTGV10DZJXGT was not found in stacker db. Must not be registered for this reward cycle 144.
@@ -107,15 +107,15 @@ Action:
107107

108108
50,000 STX makes a signer eligible for rewards. Getting into the signing set depends on how much STX is staked in total. For each cycle, the node computes:
109109

110-
1. `pox_ustx_threshold = ceil(total STX locked / reward slots)`. There are 4,000 reward slots on mainnet and 2,000 on testnet.
110+
1. `pox_ustx_threshold = ceil(total STX delegated to signers that are eligible for rewards / reward slots)`. There are 4,000 reward slots on mainnet and 1,600 on the public testnet (900-block cycles with a 100-block prepare phase).
111111
2. Each signer's weight is `floor(stake / pox_ustx_threshold)`.
112112
3. Slots left over after step 2 go one each to the signers with the largest remainders.
113113
4. Signers that end with weight 0 are left out of the signing set.
114114

115115
Stake at or above `pox_ustx_threshold` guarantees a place in the signing set. Below it, a signer gets in only if it wins a leftover slot, which depends on every other signer's stake.
116116

117117
{% hint style="info" %}
118-
**Mainnet, cycle 144:** about 448.3 million STX was locked, so `pox_ustx_threshold` was 112,082,393,974 uSTX, about **112,083 STX**. A signer needed at least that much delegated to be sure of a place in the signing set. The threshold rises as total stake rises (it was about 98,112 STX in cycle 141), so leave a margin and check it each cycle.
118+
**Mainnet, cycle 144:** about 448.3 million STX was delegated to eligible signers, so `pox_ustx_threshold` was 112,082,393,974 uSTX, about **112,083 STX**. A signer needed at least that much delegated to be sure of a place in the signing set. The threshold rises as total stake rises (it was about 98,112 STX in cycle 141), so leave a margin and check it each cycle.
119119
{% endhint %}
120120

121121
To read the threshold and the signing set for a cycle, query your node's RPC endpoint:
@@ -132,7 +132,7 @@ Source: `stackslib/src/chainstate/nakamoto/signer_set.rs` in [stacks-core 4.0.4]
132132

133133
### Peer not connecting
134134

135-
If you see a message about a peer not connecting, for example:
135+
If you see a message about a peer not connecting, for example (from an earlier stacks-node release):
136136

137137
```
138138
INFO [1711988555.021567] [stackslib/src/net/neighbors/walk.rs:1015] [p2p-(0.0.0.0:20444,0.0.0.0:20443)] local.80000000://(bind=0.0.0.0:20444)(pub=Some(10.0.19.16:20444)): Failed to connect to facade0b+80000000://172.16.60.18:20444: PeerNotConnected

0 commit comments

Comments
 (0)