diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index ebcab1227da..922dbb05de6 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -3593,7 +3593,7 @@ static RPCHelpMan rescanblockchain() } int start_height = 0; - Optional stop_height; + Optional stop_height = MakeOptional(false, int()); uint256 start_block; { LOCK(pwallet->cs_wallet);