-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
src: dynamic span, to calculate span limit dynamically #9495
base: master
Are you sure you want to change the base?
src: dynamic span, to calculate span limit dynamically #9495
Conversation
@@ -62,7 +62,8 @@ | |||
#define MLOG_PEER_STATE(x) \ | |||
MCINFO(MONERO_DEFAULT_LOG_CATEGORY, context << "[" << epee::string_tools::to_string_hex(context.m_pruning_seed) << "] state: " << x << " in state " << cryptonote::get_protocol_state_string(context.m_state)) | |||
|
|||
#define BLOCK_QUEUE_NSPANS_THRESHOLD 10 // chunks of N blocks | |||
#define BLOCK_QUEUE_NSPANS_THRESHOLD 200 // chunks of N blocks | |||
#define BLOCK_QUEUE_NSPANS_MINIMUM 10 // minimum number of spans // |
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 dangling //
is the only (non-)issue I see in this PR.
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.
Thanks for mentioning it. Fixed.
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.
LGTM, straightforward changes.
Co-authored-by: nahuhh
87ebb1b
to
9ff5737
Compare
No description provided.