-
Notifications
You must be signed in to change notification settings - Fork 968
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
Easier to capture scp messages #3832
Conversation
098b6f0
to
dd73764
Compare
8680e45
to
dd73764
Compare
|
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.
general approach probably has too many implications (which would require a lot of new tests to be written).
Also: rebase branches instead of merging as this creates hard-to-follow git history
7462440
to
baf5229
Compare
0245389
to
2c93596
Compare
2c93596
to
dd5b7f6
Compare
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.
Couple of minor suggestions, otherwise LGTM
src/main/Config.cpp
Outdated
@@ -142,6 +142,7 @@ Config::Config() : NODE_SEED(SecretKey::random()) | |||
EXPERIMENTAL_BUCKETLIST_DB_INDEX_PAGE_SIZE_EXPONENT = 14; // 2^14 == 16 kb | |||
EXPERIMENTAL_BUCKETLIST_DB_INDEX_CUTOFF = 20; // 20 mb | |||
EXPERIMENTAL_BUCKETLIST_DB_PERSIST_INDEX = true; | |||
PUBLISH_TO_ARCHIVE_DELAY = std::chrono::seconds{2}; |
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.
actually, should we set this to 0 by default, and operators that need this functionality can adjust the config manually?
src/history/HistoryManagerImpl.cpp
Outdated
|
||
auto time = app.getClock().now(); | ||
auto dur = time - start; | ||
return std::chrono::duration_cast<std::chrono::seconds>(dur) > |
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.
>=
? This way you don't need to special case std::chrono::seconds::zero
dd5b7f6
to
9a75ca1
Compare
capture scp messages draft remove extra white space clean up header impl moved delay publish logic to ledger manager rm delay timer from herder impl and add delay-publish-to-archive criterion add delay publish to archive config option preliminary changes for delay publish to archive logic in history manager impl Remove delay publish to archive logic from herder and ledger manager. Change delay-publish-to-archive work to ConditionalWork. update xdr make publish to archive delay configurable fix format fix format and work naming Make default publish-to-archive delay to 0
9a75ca1
to
419329c
Compare
r+ 419329c |
Description
Draft working on #3769
Checklist
clang-format
v8.0.0 (viamake format
or the Visual Studio extension)