aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-10-15 18:34:26 +0200
committerRiccardo Spagni <ric@spagni.net>2017-10-15 18:34:26 +0200
commit1e577e8fbf803901e6b4b612015bf365d2e5c96e (patch)
treeab9f071a4f023113b22de9cffa57132c4ffabdc6 /src/cryptonote_protocol
parentMerge pull request #2570 (diff)
parentblock_queue: use boost::uuids::nil_uuid where appropriate (diff)
downloadmonero-1e577e8fbf803901e6b4b612015bf365d2e5c96e.tar.xz
Merge pull request #2571
8028dde7 block_queue: use boost::uuids::nil_uuid where appropriate (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_protocol')
-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