aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristaps Kaupe <kristaps@blogiem.lv>2020-11-14 03:20:07 +0200
committerKristaps Kaupe <kristaps@blogiem.lv>2020-11-14 03:20:07 +0200
commit29c66ace5c777b56cd9e19756a1ab0801d15a5ae (patch)
treed5b2704bfbed48b9aa4b31066fe32c688ad0643f
parent543693b92b954d186cb466a2f14b480f3bcf8c0b (diff)
downloadbitcoin-29c66ace5c777b56cd9e19756a1ab0801d15a5ae.tar.xz
Silence false positive GCC warning
-rw-r--r--src/wallet/rpcwallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
index ebcab1227d..922dbb05de 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -3593,7 +3593,7 @@ static RPCHelpMan rescanblockchain()
}
int start_height = 0;
- Optional<int> stop_height;
+ Optional<int> stop_height = MakeOptional(false, int());
uint256 start_block;
{
LOCK(pwallet->cs_wallet);