From 1b37333a7f113ba2458346074610861de4547927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Jan=C3=ADk?= Date: Sat, 20 Dec 2014 16:57:46 +0100 Subject: [PATCH 1/2] Remove no longer needed declaration of CBlockLocator --- src/db.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/db.h b/src/db.h index 1c572d8970..1e87852d13 100644 --- a/src/db.h +++ b/src/db.h @@ -23,8 +23,6 @@ class CDiskBlockIndex; class COutPoint; -struct CBlockLocator; - extern unsigned int nWalletDBUpdated; void ThreadFlushWalletDB(const std::string& strWalletFile); From bdb6a71d3d4173b02d24f302af2c2707df85e95b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Jan=C3=ADk?= Date: Sat, 20 Dec 2014 16:58:40 +0100 Subject: [PATCH 2/2] IsNull doesn't change CBlockLocator, add const hint --- src/primitives/block.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/primitives/block.h b/src/primitives/block.h index a189592539..4f2ed36b46 100644 --- a/src/primitives/block.h +++ b/src/primitives/block.h @@ -162,7 +162,7 @@ struct CBlockLocator vHave.clear(); } - bool IsNull() + bool IsNull() const { return vHave.empty(); }