-
Notifications
You must be signed in to change notification settings - Fork 37.8k
Refactor: Change time variable type from int64_t to std::chrono::seconds in net_processing.cpp #23801
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
Conversation
A gentle ping, @MarcoFalke |
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.
ack. left some nits
f8b810b
to
8e0ba04
Compare
Updated from f8b810b to 8e0ba04 (pr23801.01 -> pr23801.02) Changes
|
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.
more nits
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.
crACK 8e0ba04
Concept ACK. |
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.
#include <chrono>
?
8e0ba04
to
1a1fafa
Compare
Updated from 8e0ba04 to 1a1fafa (pr23801.02 -> pr23801.03) Addressed comment by @MarcoFalke Changes:
@hebasto. I think including |
https://github.com/bitcoin/bitcoin/blob/master/doc/developer-notes.md#source-code-organization:
|
1a1fafa
to
d5207c2
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.
ACK d5207c2.
nit: On the same note, wouldn't #include <atomic>
be needed too?
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.
ACK d5207c2
…ng.cpp - This commit is a followup to commit: 60b579 - This changes the remaining time variable in net_processing.cpp from int64_t to std::chrono
d5207c2
to
92082ea
Compare
Updated from d5207c2 to 92082ea (pr23801.03 -> pr23801.04) Changes:
|
ACK 92082ea |
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.
re-ACK 92082ea
I've restarted the "macOS 12 native [gui, system sqlite only] [no depends]" Cirrus CI task. |
re-ack. Left two nits and a follow-up idea. |
fe86eb5 Refactor: Uses c++ init convention for time variables (Shashwat) 6111b0d Refactor: Changes remaining time variable type from int to chrono (Shashwat) Pull request description: This PR is a follow-up to #23801. This PR aims to make the following changes to all the time variables in **net_processing.cpp** wherever possible. - Convert all time variables to `std::chrono.` - Use `chorno::literals` wherever possible. - Use `auto` keywords wherever possible. - Use `var{val}` convention of initialization. This PR also minimizes the number of times, serialization of time `count_seconds(..)` occurs. ACKs for top commit: MarcoFalke: re-ACK fe86eb5 🏕 Tree-SHA512: c8684c0c60a11140027e36b6e9706a45ecdeae6b5ba0bf267e50655835daee5e5410e34096a8c4eca005f327caae1ac258cc7b8ba663eab58abf131f6d2f4d42
net_processing.cpp
from int64_t to std::chrono::seconds