Commit 259c618
committed
Fix eat-heads guard: skip when decorated_heads is empty (p2pool match)
p2pool node.py:359 guards eat-heads with 'if decorated_heads:' —
when the verified chain has no scored heads, the entire head-eating
loop is skipped. c2pool was missing this guard, causing all heads
older than 300s to be eaten when top5 was empty (e.g. after chain
disruption). This collapsed 34 heads to 2, fragmenting the chain
from depth 1072 to 49 with 72 disconnected tails.1 parent e450df9 commit 259c618
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1381 | 1381 | | |
1382 | 1382 | | |
1383 | 1383 | | |
| 1384 | + | |
1384 | 1385 | | |
1385 | 1386 | | |
1386 | 1387 | | |
| |||
0 commit comments