-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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 |
maflcko
left a comment
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 f8b810b8e15b72f5cff4c6e27bea3f6a64fd0c3d to 8e0ba04b2e6e9ecb11b541ecc361c3a9fe5e9fde (pr23801.01 -> pr23801.02) Changes
|
maflcko
left a comment
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
w0xlt
left a comment
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. |
hebasto
left a comment
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 8e0ba04b2e6e9ecb11b541ecc361c3a9fe5e9fde to 1a1fafa4fdcbe7b0d1ef8df466a71bd3e65195d3 (pr23801.02 -> pr23801.03) Addressed comment by @MarcoFalke Changes:
@hebasto. I think including |
|
1a1fafa to
d5207c2
Compare
stratospher
left a comment
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?
hebasto
left a comment
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 d5207c2b75c33a720879ed1e43f3db1156cdcce8
…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 d5207c2b75c33a720879ed1e43f3db1156cdcce8 to 92082ea (pr23801.03 -> pr23801.04) Changes:
|
|
ACK 92082ea |
hebasto
left a comment
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.cppfrom int64_t to std::chrono::seconds