This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Refactor bank and track root and live bank checkpoints. #2640
Closed
Conversation
This file contains 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
e6adfc7
to
3aaa0a6
Compare
This was referenced Feb 2, 2019
garious
reviewed
Feb 4, 2019
garious
reviewed
Feb 4, 2019
garious
reviewed
Feb 4, 2019
src/bank_checkpoint.rs
Outdated
} | ||
} | ||
|
||
impl Default for BankCheckpoint { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this can be derived automatically
garious
reviewed
Feb 4, 2019
#2646 design doc |
@rob-solana, Anatoly posted a bunch of name-change comments at the end of #2646 that also apply to this PR. Can you make those updates before this goes in? |
aa585df
to
25a726b
Compare
…ite transactions or ticks
4030e52
to
c9fcaaf
Compare
3 tasks
garious
reviewed
Feb 7, 2019
self.process_block(&block)?; | ||
let slot = block[0].tick_height / DEFAULT_TICKS_PER_SLOT; | ||
if slot > 0 && block[0].tick_height % DEFAULT_TICKS_PER_SLOT == 0 { | ||
//TODO: EntryTree should provide base slot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EntryTree
isn't a thing anymore. And is the base slot needed? Is that just slot zero now?
What's the point of Bank after this PR? Why not delete the existing Bank and call the new thing Bank? |
Moved to #2689 |
wen-coding
added a commit
to wen-coding/solana
that referenced
this pull request
Aug 25, 2024
…s#2640) Enable wen_restart from command line and update comments.
jeffwashington
pushed a commit
to jeffwashington/solana
that referenced
this pull request
Aug 27, 2024
…s#2640) Enable wen_restart from command line and update comments.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Problem
Need a way to track root and live bank state in the system and handle rollback.
Summary of Changes
live
androot
BankState is reachable from the bankWhat is not done:
last_id
for a client should probably come fromroot
, but for a vote needs to come from the live branch that is being voted on.Fixes #2555