Commit 5febc12
authored
dgb(test): pin pool/share-layer params to p2pool-dgb-scrypt oracle (#161)
Phase B conformance: audited the DGB pool/share constant + tracker
score-period layer against the frstrtr/p2pool-dgb-scrypt oracle
(networks/digibyte.py + bitcoin/networks/digibyte.py) and confirmed
full conformance. Lock the previously-unguarded params against drift in
share_test.cpp (target already in both build.yml allowlists):
SPREAD=24, TARGET_LOOKBEHIND=100, REAL_CHAIN_LENGTH=2880,
BLOCK_MAX_SIZE=32000000, BLOCK_MAX_WEIGHT=128000000,
CoinParams::BLOCK_PERIOD=75 (PARENT.BLOCK_PERIOD, tracker score() denom),
MAX_TARGET = 2**256//2**20 - 1 = 2^236-1.
Test-only, single-coin, strictly inside src/impl/dgb/test/. No shared
base / bitcoin_family / src/core touched. dgb_share_test 6/6 PASS.
Co-authored-by: frstrtr <frstrtr@users.noreply.github.com>1 parent 57109ce commit 5febc12
1 file changed
Lines changed: 21 additions & 0 deletions
File tree
- src/impl/dgb/test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
39 | 60 | | |
40 | 61 | | |
41 | 62 | | |
| |||
0 commit comments