Repository navigation
fix: keep node count on restart, legacy sandbox detection, unit tests - #69
Open
shichengripple001 wants to merge 1 commit into
Open
shichengripple001 wants to merge 1 commit into
shichengripple001 wants to merge 1 commit into
Conversation
…nit tests - start --local-network without --nodes now reuses the existing sandbox node count (was always 3) - readConsensusNodeCount falls back to counting node services in the compose file for sandboxes created before the record existed - unit tests for readConsensusNodeCount and the logs node<N> alias Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Follow-up to #68 (multi-node consensus). Stacked on
feat/xrpld-3.4.1: merge #68 first, then retarget this PR tomain.Changes
xrpl-up start --local-networkwithout--nodesnow reuses the existing sandbox's node count. Before, it always used 3, so a 2-node network restarted as 3 nodes.readConsensusNodeCountfalls back to counting node services in the compose file when no record exists (sandboxes created before the record was written), instead of assuming 3.xrpl-up nodeswas reporting a phantom validator3 for those.--nodeshelp text describes the new default.tests/unit/consensus-nodes.test.ts, 9 tests): node-count record/fallback/out-of-range handling and thelogs node<N>alias mapping.Tested
npm run buildclean;vitest run tests/unit: 14 passed.xrpl-upCLI:start --local-network --nodes 2,stop,start --local-network(no flag) came back as a 2-node network, both validators proposing.🤖 Generated with Claude Code