aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-12-08 16:49:33 +0100
committerMarcoFalke <falke.marco@gmail.com>2020-12-08 16:47:36 +0100
commitfa11110bff6288f63e0c487e2e4b4079fb0f4569 (patch)
tree3d93598c38ba1b34be157fefb14a38bb24ee940a /src/net.h
parent16b31cc4c516cdcaf6d2eb2dd1255cc3e6973ba1 (diff)
downloadbitcoin-fa11110bff6288f63e0c487e2e4b4079fb0f4569.tar.xz
util: Allow use of C++14 chrono literals
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.h b/src/net.h
index 77aaaac5b1..2fed49540d 100644
--- a/src/net.h
+++ b/src/net.h
@@ -1016,7 +1016,7 @@ public:
// Used for BIP35 mempool sending
bool fSendMempool GUARDED_BY(cs_tx_inventory){false};
// Last time a "MEMPOOL" request was serviced.
- std::atomic<std::chrono::seconds> m_last_mempool_req{std::chrono::seconds{0}};
+ std::atomic<std::chrono::seconds> m_last_mempool_req{0s};
std::chrono::microseconds nNextInvSend{0};
RecursiveMutex cs_feeFilter;
@@ -1049,7 +1049,7 @@ public:
// The pong reply we're expecting, or 0 if no pong expected.
std::atomic<uint64_t> nPingNonceSent{0};
/** When the last ping was sent, or 0 if no ping was ever sent */
- std::atomic<std::chrono::microseconds> m_ping_start{std::chrono::microseconds{0}};
+ std::atomic<std::chrono::microseconds> m_ping_start{0us};
// Last measured round-trip time.
std::atomic<int64_t> nPingUsecTime{0};
// Best measured round-trip time.