nmc(card237): second node-verified auxpow wire KAT (mainnet 829949) - #228
Merged
Conversation
Add MainnetBlock829949RoundTrip alongside the existing 757000 case in src/impl/nmc/test/auxpow_wire_test.cpp. The vector is the raw getblock 0 hex of Namecoin mainnet block 829949 (hash f876ce3f...e6b92b), pulled LIVE 2026-06-19 from the .140 pruned mainnet node (height 829950, initialblockdownload=false). It carries a distinct BTC parent (versionHex 0x234c4000) from the 757000 case. Rationale: the round-trip memcmp only proves the CAuxPow serializer is self-consistent against the supplied blob, so the KAT s strength rests entirely on the vector being genuine external truth. 757000 is below this pruned node s horizon and cannot be re-verified; this second case pins the serializer against an independently node-verified blob at a different height/parent. Both cases pass (EXIT=0). Fenced: src/impl/nmc/test/ only; rides the allowlisted nmc_auxpow_wire_test exe, no build.yml or CMake change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a second wire-vector KAT case to
src/impl/nmc/test/auxpow_wire_test.cpp:MainnetBlock829949RoundTrip, the rawgetblock 0hex of Namecoin mainnet block 829949 (hash f876ce3f...e6b92b), pulled LIVE 2026-06-19 from the .140 pruned mainnet node (height 829950, IBD complete). Distinct BTC parent (versionHex 0x234c4000) from the existing 757000 case.Why: the round-trip memcmp only proves the CAuxPow serializer is self-consistent against the supplied blob, so the KAT s strength rests on the vector being genuine external truth. 757000 is below this pruned node s horizon and cannot be re-verified; this case pins the serializer against an independently node-verified blob at a different height/parent.
Both cases PASS locally (EXIT=0). Fenced: src/impl/nmc/test/ only; rides the allowlisted nmc_auxpow_wire_test exe, no build.yml/CMake change. GPG-signed, no third-party attribution.