mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
Merge #20386: Silence false positive GCC warning in wallet/rpcwallet.cpp
049feabf28
Add missing optional.h include (Kristaps Kaupe)29c66ace5c
Silence false positive GCC warning (Kristaps Kaupe) Pull request description: Resolves #20381. ACKs for top commit: jnewbery: utACK049feabf28
practicalswift: ACK049feabf28
: diagnostics signal to noise is increased by getting rid of false positives hebasto: ACK049feabf28
, I have reviewed the code and it looks OK, I agree it can be merged. Tree-SHA512: 05d84f51521c3b843ed6bf284a83a91db015ad0cd4fcf8b602275812575c1f6b4899286a89d360fbd3caef184abdfb9d834e119842d8740919892f05a0f9e1f8
This commit is contained in:
commit
0ede354367
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <interfaces/chain.h>
|
||||
#include <key_io.h>
|
||||
#include <node/context.h>
|
||||
#include <optional.h>
|
||||
#include <outputtype.h>
|
||||
#include <policy/feerate.h>
|
||||
#include <policy/fees.h>
|
||||
|
@ -3593,7 +3594,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);
|
||||
|
|
Loading…
Add table
Reference in a new issue