aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/block_queue.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-10-03 11:55:45 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-10-03 11:55:45 +0100
commit8028dde7a62bda08be736bd7034420c9a4da93fc (patch)
treed3cb3cc74110bfaae5be97c06da3e4b330e02ffd /src/cryptonote_protocol/block_queue.cpp
parentMerge pull request #2518 (diff)
downloadmonero-8028dde7a62bda08be736bd7034420c9a4da93fc.tar.xz
block_queue: use boost::uuids::nil_uuid where appropriate
Diffstat (limited to 'src/cryptonote_protocol/block_queue.cpp')
-rw-r--r--src/cryptonote_protocol/block_queue.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cryptonote_protocol/block_queue.cpp b/src/cryptonote_protocol/block_queue.cpp
index 64dd1fb50..813167400 100644
--- a/src/cryptonote_protocol/block_queue.cpp
+++ b/src/cryptonote_protocol/block_queue.cpp
@@ -205,8 +205,7 @@ std::pair<uint64_t, uint64_t> block_queue::reserve_span(uint64_t first_block_hei
bool block_queue::is_blockchain_placeholder(const span &span) const
{
- static const boost::uuids::uuid uuid0 = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
- return span.connection_id == uuid0;
+ return span.connection_id == boost::uuids::nil_uuid();
}
std::pair<uint64_t, uint64_t> block_queue::get_start_gap_span() const