Commit 2fbbf8f
committed
Normalize P2WPKH scripts in merged mining weight computation
During V35→V36 transition, miners using bech32/P2WPKH LTC addresses had
their raw SegWit scriptPubKey (0014{hash20}) used as weight keys in DOGE
PPLNS. DOGE does not support SegWit — this produced invalid address keys.
Normalize weight keys in all 4 merged mining paths:
- compute_merged_payout_hash (consensus commitment)
- V36-only merged weights skiplist (ensure_v36_skiplist)
- Per-chain merged skiplist V35 branch (ensure_merged_skiplist)
- Per-chain merged skiplist V36 Tier 2 fallback
P2WPKH (22b) → P2PKH conversion, P2PKH/P2SH passthrough,
P2TR/P2WSH skipped (unconvertible). Share data unchanged on wire.
Also adds chain_h and best share hash to FORK-DIAG logging for
chain depth divergence diagnostics.1 parent 07c2934 commit 2fbbf8f
2 files changed
Lines changed: 262 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1533 | 1533 | | |
1534 | 1534 | | |
1535 | 1535 | | |
1536 | | - | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
1537 | 1543 | | |
1538 | 1544 | | |
1539 | 1545 | | |
| |||
0 commit comments