Refactor: Change time variable type from int64_t to std::chrono::seconds in net_processing.cpp#23801
Conversation
|
A gentle ping, @MarcoFalke |
f8b810b to
8e0ba04
Compare
|
Updated from f8b810b8e15b72f5cff4c6e27bea3f6a64fd0c3d to 8e0ba04b2e6e9ecb11b541ecc361c3a9fe5e9fde (pr23801.01 -> pr23801.02) Changes
|
|
Concept ACK. |
8e0ba04 to
1a1fafa
Compare
|
Updated from 8e0ba04b2e6e9ecb11b541ecc361c3a9fe5e9fde to 1a1fafa4fdcbe7b0d1ef8df466a71bd3e65195d3 (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
stratospher
left a comment
There was a problem hiding this comment.
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.
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 |
|
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