Commit 2b1ac2b
authored
btc: G0/G1 bake golden share-format fixture + parity KAT (#392)
* btc: G0/G1 bake golden share-format fixture + parity KAT
Bake the BTC share-format baseline now that the fork pin is resolved to
p2pool-btc-jtoomim @ ece15b03fc23. Emit the golden fixture via
tools/conformance/extract_share_format.py (static extraction) and add a
gtest KAT that asserts the c2pool BTC port against it.
Bucket discipline (3-bucket rule):
- Isolation primitives (IDENTIFIER/PREFIX/P2P_PORT/SEGWIT=33): byte-equal.
- MINIMUM_PROTOCOL_VERSION: c2pool floor (3500) >= baseline (3301), an
intentional forward-compatible raise, not a parity break.
- share-versions additive-v36: boundary pinned by BTC_version_gate KAT.
Rides the existing allowlisted btc_share_test exe (no new target, no
build.yml change). btc_share_test 14/14 green; fixture re-emit MATCH 9/9.
* btc/test: G0/G1 lock share-version additive to exactly v36 (version_gate SSOT)
Strengthen the G0/G1 share-format parity gate so an unsanctioned extra/
shifted share-version fails here, not only in the separate activation-
boundary KAT. c2pool has no p2pool-style version array to compare element-
wise, so the single sanctioned additive over the baseline [0,17,32,33,34,35]
is locked against core::version_gate::V36_ACTIVATION_VERSION (==36) plus an
exact-boundary check (36 active, 35 not). Baseline set transcribed from
btc.g01.golden.json @ ece15b03fc23. Test-only, fenced to src/impl/btc/test.
---------
Co-authored-by: frstrtr <frstrtr@users.noreply.github.com>1 parent f649af7 commit 2b1ac2b
3 files changed
Lines changed: 122 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments