Repository navigation
ci: official nodes in the test networks - #103
Merged
Merged
Conversation
node_alt_ref=official builds the official 4.2.532 node (4a95aaa) with only the two hooks a CI test network needs, its starter key and genesis recipient (ci/official/testnet-hooks.patch), and runs it on the even nodes. Official nodes log no state digest: every node opens its API and blockhashes.py checks that they hold the same blocks as n1; digests are compared among the others. The nightly testnet run uses official nodes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g suffix -o) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
run.sh refuses at once a scenario that needs on an even node a feature only this fork has, reports the official nodes' BerkeleyDB, traces cores with the binary of the node that left them; robustness.yml skips those scenarios with node_alt_ref=official; two nightly testnet runs (this node alone, then with official nodes); the official build no longer gets CREDITS_TESTNET; the patch logs when its genesis hook is used and is kept byte for byte (.gitattributes). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…null != false is false) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…node killed while saving a checkpoint does not restart) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EnzinoBB
added a commit
that referenced
this pull request
Oct 25, 2026
Step P5 rewritten against the code merged through #104 and PR #103 (official even nodes in CI): the init split into initCommon/initChain/initRunning, the gates (chooseMessageAction, onNeighbourAdded, onPingChecked, onRoundTimeElapsed), the worker thread for the import and initChain with the hand-over through CallsQueue, the fetcher hooks, the hash databases released before the import, the interrupted-import marker, the start-up verification with exit code 4, the run.sh variables and the robustness rows with official even nodes, and the risks with a test for each. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The official 4.2.532 node cannot join our CI test networks as it is: its genesis block sends the funds to the mainnet address and its starter key is the mainnet one, while a test network uses keys generated per run, so it stays at block 0 on a different genesis.
ci/official/testnet-hooks.patch: 11 lines on the official source (4a95aaa):CS_TESTNET_STARTER_KEYandCS_TESTNET_GENESIS_KEYread from the environment, as ourCREDITS_TESTNETbuilds do. Nothing else of the official node changes; without the variables it behaves as on mainnet. Release builds are not affected (they never use this patch, and our own release keepsCREDITS_TESTNEToff).testnet.yml,robustness.yml:node_alt_ref=officialbuilds that node and runs it on the even nodes; the nightlytestnet.ymlrun uses it.run.sh(BIN_ALT_OFFICIAL=1): official nodes log no state digest, so every node opens its API andci/testnet/blockhashes.pychecks that each node holds the same block hashes as n1 (every 100th block up to the lowest head); the state digests are compared among the community nodes.🤖 Generated with Claude Code