-
Notifications
You must be signed in to change notification settings - Fork 973
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
Add new catchup mode to use transaction results to skip failed transaction and signature verification #4536
Open
ThomasBrady
wants to merge
17
commits into
stellar:master
Choose a base branch
from
ThomasBrady:lightweight-catchup
base: master
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.
+515
−128
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
222f2c0
WIP
ThomasBrady a8764e7
Yolo test new mode without supercluster config
ThomasBrady 0f80cc8
Revert default to skip mode
ThomasBrady 40701f8
refactoring
ThomasBrady c2bc090
update p22 soroban rust
ThomasBrady 92090fe
CATCHUP_SKIP_KNOWN_RESULTS=true
ThomasBrady d6041b4
Downloading results is optional, failure is not fatal. Missing result…
ThomasBrady 42242c0
Handle resplay for feebumptransactionframe
ThomasBrady e7e7b96
Set result of mutable fee bump txn result
ThomasBrady a30ae35
remove feebump special case
ThomasBrady 6d2fa0b
Just one variable for replay result
ThomasBrady 3c2e52b
format
ThomasBrady c451463
only access results() of tx results with code txFAILED, move skip mod…
ThomasBrady f02ab87
ifdef
ThomasBrady 8d8b6a6
format
ThomasBrady b23ffdc
ifdefs, moving results plumbing to one function'
ThomasBrady fb725ab
refactor, extra checks around file access, remove optional work param…
ThomasBrady File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,22 +24,22 @@ using WorkSeqPtr = std::shared_ptr<WorkSequence>; | |
|
||
// CatchupWork does all the necessary work to perform any type of catchup. | ||
// It accepts CatchupConfiguration structure to know from which ledger to which | ||
// one do the catchup and if it involves only applying ledgers or ledgers and | ||
// one to do the catchup and if it involves only applying ledgers or ledgers and | ||
// buckets. | ||
// | ||
// First thing it does is to get a history state which allows to calculate | ||
// proper destination ledger (in case CatchupConfiguration::CURRENT) was used | ||
// and to get list of buckets that should be in database on that ledger. | ||
// First, it gets a history state, which allows it to calculate a | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks for documentation fixes! |
||
// proper destination ledger (in case CatchupConfiguration::CURRENT) | ||
// and get a list of buckets that should be in the database on that ledger. | ||
// | ||
// Next step is downloading and verifying ledgers (if verifyMode is set to | ||
// VERIFY_BUFFERED_LEDGERS it can also verify against ledgers currently | ||
// Next, it downloads and verifies ledgers (if verifyMode is set to | ||
// VERIFY_BUFFERED_LEDGERS, it can also verify against ledgers currently | ||
// buffered in LedgerManager). | ||
// | ||
// Then, depending on configuration, it can download, verify and apply buckets | ||
// (as in MINIMAL and RECENT catchups), and then download and apply | ||
// transactions (as in COMPLETE and RECENT catchups). | ||
// | ||
// After that, catchup is done and node can replay buffered ledgers and take | ||
// After that, catchup is done and the node can replay buffered ledgers and take | ||
// part in consensus protocol. | ||
|
||
class CatchupWork : public Work | ||
|
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
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
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
Oops, something went wrong.
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.
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.
Why did the formatting change?
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.
I reworded it a bit, which changed the line lengths and formatting.