test(consensus): recapture stepping golden fingerprints

macOS values after the portable rand_int mapping. SteppingTraffic held
and is not in this commit. The hub-network fingerprint held as well.
This commit is contained in:
Nicholas Dudfield
2026-09-23 12:37:10 +07:00
parent 54f722d27d
commit 58ff1777fb
2 changed files with 63 additions and 63 deletions

View File

@@ -27,10 +27,10 @@ class SteppingCsf_test : public beast::unit_test::suite
// Xahaud's acquisition timeline; semantic lag/fork and replay checks below
// are retained alongside this target-specific snapshot.
static constexpr std::uint64_t kSlowMinorityFingerprint =
0xc06a2e5b66b4fe7eull;
0x4aea2f46ca499175ull;
static constexpr std::uint64_t kHubNetworkFingerprint =
0x75653559986b05c9ull;
static constexpr std::uint64_t kDisputeFingerprint = 0x1316f49d1fdf96e4ull;
static constexpr std::uint64_t kDisputeFingerprint = 0x03773da2e07e273cull;
struct KProfiledDisputeSample
{
@@ -750,11 +750,11 @@ class SteppingCsf_test : public beast::unit_test::suite
// Resolved rows prove the conflict stayed safe through an accepted
// sequence. Saturated unresolved rows are retained only as pressure
// coverage; they must not be mistaken for dispute-resolution evidence.
// These snapshots calibrate the xahaud implementation. K=0/1 retain
// the donor samples; K=3 resolves here, so K=4 preserves the saturated
// unresolved control. No consensus policy is changed to fit a snapshot.
// These snapshots calibrate the xahaud implementation. K=3 resolves
// here, so K=4 preserves the saturated unresolved control. No
// consensus policy is changed to fit a snapshot.
std::array<KProfiledDisputeSample, 5> const kExpected = {{
{0, 0x8318bb96cded5612ull,
{0, 0xc7b9f47f247a148aull,
2606, 0,
1132, 0,
11, 11,
@@ -769,62 +769,62 @@ class SteppingCsf_test : public beast::unit_test::suite
true, true,
true, true,
true, true},
{1, 0xcd0c3925c08f8867ull,
2631, 2570,
1157, 15,
{1, 0x8a2443e7d07ed17bull,
2630, 2567,
1156, 15,
11, 11,
10, 11,
8, 8,
0, 9,
12850, 12770,
12835, 12760,
1865, 66820,
75, 717,
333, 30,
332, 30,
2, true,
true, true,
true, true,
true, true},
{2, 0xb41f328428a05fadull,
3129, 3863,
1655, 38,
11, 12,
{2, 0x182d5979de1d171full,
2708, 2844,
1234, 27,
11, 11,
10, 11,
9, 9,
0, 37,
38630, 38070,
2000, 89090,
185, 678,
740, 50,
0, 26,
28440, 27960,
2000, 78980,
135, 542,
513, 42,
2, true,
true, true,
true, true,
true, true},
{3, 0xfe5e1b925376f76cull,
4516, 7273,
3042, 107,
11, 13,
12, 11,
{3, 0xcfc0f9405b29cef7ull,
4661, 7645,
3187, 112,
11, 12,
11, 11,
10, 0,
10, 106,
109095, 107315,
2000, 158335,
520, 712,
1711, 97,
10, 111,
114675, 112885,
2000, 163905,
545, 722,
1818, 100,
3, true,
true, true,
true, true,
true, false},
{4, 0x2da6d32dc5defa09ull,
4986, 8340,
3512, 160,
{4, 0x668228fd72846e90ull,
4980, 8331,
3506, 160,
8, 8,
7, 11,
0, 0,
0, 160,
166800, 161000,
166620, 161000,
2000, 212020,
730, 602,
2048, 130,
725, 603,
2046, 130,
2, true,
true, true,
false, false,

View File

@@ -1006,19 +1006,19 @@ class SteppingTrust_test : public beast::unit_test::suite
0, true, true,
false, true, false,
false, false, 1},
{0, 1, 0x6b8e98d604c1dc3ull,
3811, 5339, 2392,
{0, 1, 0xc364543a2b0ed316ull,
3809, 5335, 2390,
26, 8, 8,
7, 8, 6,
0, 6, 6,
25, 26695, 26455,
25, 26675, 26455,
2000, 68465, 250,
1281, 807, 52,
1279, 807, 52,
2, true, true,
false, true, false,
false, true, 5},
{4, 0, 0xa1e1f2f26258ff6bull,
6095, 0, 4169,
{4, 0, 0xdd2d1949c1e5e96full,
6104, 0, 4178,
0, 8, 8,
7, 8, 0,
5, 5, 0,
@@ -1028,29 +1028,29 @@ class SteppingTrust_test : public beast::unit_test::suite
0, true, true,
true, false, true,
false, false, 5},
{4, 1, 0xd6b2b12cd133b749ull,
6204, 9633, 4278,
{4, 1, 0x272a08d874ce16f9ull,
6191, 9605, 4265,
14, 8, 8,
7, 8, 0,
5, 5, 0,
4, 9633, 9626,
4, 9605, 9598,
1640, 56548, 140,
2895, 1219, 22,
2884, 1217, 22,
3, true, true,
true, false, true,
false, true, 1},
{4, 1, 0xa86e8c666502b3e1ull,
14863, 32496, 12937,
{4, 1, 0xcd8cee7af2732ffcull,
14875, 32503, 12949,
160, 5, 5,
4, 8, 0,
0, 0, 0,
160, 162480, 161000,
2000, 203010, 1510,
2838, 8134, 453,
160, 162515, 161000,
2000, 203010, 1520,
2855, 8127, 445,
3, true, true,
true, false, false,
true, true, 5},
{6, 0, 0x6c8223b782035f7bull,
{6, 0, 0x7bb058844fa2eae9ull,
6098, 0, 4068,
0, 8, 8,
7, 8, 0,
@@ -1061,25 +1061,25 @@ class SteppingTrust_test : public beast::unit_test::suite
0, true, true,
true, false, true,
false, false, 5},
{6, 1, 0xfc8fb2511a1f834aull,
6208, 9304, 4178,
{6, 1, 0x4d2f69d8884dca4dull,
6212, 9314, 4182,
13, 8, 8,
7, 8, 0,
5, 5, 0,
7, 9304, 9289,
7, 9314, 9299,
1632, 55612, 130,
2950, 1080, 16,
2952, 1082, 16,
3, true, true,
true, false, true,
false, true, 1},
{6, 1, 0x503867b2788354e5ull,
15243, 32498, 13213,
160, 5, 11,
10, 8, 0,
{6, 1, 0x525af9afc81f4861ull,
15382, 32495, 13352,
160, 5, 12,
11, 8, 0,
0, 6, 0,
160, 162490, 161000,
2000, 203010, 1515,
3641, 7589, 466,
160, 162475, 161000,
2000, 203010, 1550,
4008, 7343, 449,
2, true, true,
true, false, false,
true, true, 5},