Skip to content
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

Draft: Recover SCP messages when replaying from history #4156

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bboston7
Copy link
Contributor

Description

Resolves #3512

This PR enables updating the scphistory table during catchup from history. It allows users to specify which archives to use via the SCP_HISTORY_ARCHIVES config option. If a user specifies multiple archives, stellar-core will merge the messages from the archives.

This is a draft PR because I'm looking for feedback on the approach, but still have some work to do before it is in a mergeable state. Most of the remaining work is to:

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v8.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

This PR enables updating the `scphistory` table during catchup from
history. It allows users to specify which archives to use via the
`SCP_HISTORY_ARCHIVES` config option. If a user specifies multiple
archives, stellar-core will merge the messages from the archives.

This is a draft PR because I'm looking for feedback on the approach, but
still have some work to do before it is in a mergeable state.
Most of the remaining work is to:

* Document the new functionality
* Write additional tests for:
  * Merging
  * Failed downloads
  * No `SCP_HISTORY_ARCHIVES`
  * Multiple `SCP_HISTORY_ARCHIVES`
  * Changes to `ReplayDebugMetaWork`
* Integrate changes from stellar#4121
* Address other `TODO`s in the changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make it possible to recover SCP messages when replaying from history
1 participant