-
Notifications
You must be signed in to change notification settings - Fork 583
Merge #17964 into dev to fix their clean merge issue. #17974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
glyh
wants to merge
16
commits into
develop
Choose a base branch
from
lyh/cjjdespres/allow-stop-time-randomness-disable/into-develop
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Merge #17964 into dev to fix their clean merge issue. #17974
glyh
wants to merge
16
commits into
develop
from
lyh/cjjdespres/allow-stop-time-randomness-disable/into-develop
Conversation
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
If a daemon is stopped at certain points while syncing a converting ledger to a network, the underlying databases can be left in an unexpected state: the num_accounts in the database will be set to a high value (because the daemon added a batch of accounts at high addresses) but not all accounts at lower indices will be present (because the daemon didn't get to filling them in yet). This will cause functions like iteri and get_at_index_exn to throw unexpected exceptions when they get to addresses that are missing accounts. A couple of new ledger functions have been added to account for this possibility, which are used in an updated ledger database sync check implementation. A few related unit tests have been added to the converting merkle tree, one of which does not pass without these changes being in place.
The ~here is set to the point of usage of Option.value_exn itself to conform with our code base's current practices, but we might want to have it passed in from the caller of these functions.
track new o1Labs OPAM repo. 1
…n-nix Bump RocksDB to 10.5.1 for non-nix builds
…k-more-defensive Make converting ledger sync check more defensive
The --stop-time-interval option sets the upper bound on the number of random hours added to the --stop-time of the daemon. It is optional, with default 9 to match the current daemon behaviour. Setting the option to 0 will disable the randomness entirely. This is useful for ensuring that daemons will stop at deterministic intervals.
…mness-disable' into lyh/cjjdespres/allow-stop-time-randomness-disable/into-develop
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.
As title. #17964 is failing on CI for clean merge into develop. Hence this PR.
58ec735 is the HEAD of that branch.
This PR has the side effect of merging parts of compatible into develop.