Skip to content

Commit 61e1eb2

Browse files
committed
Actually use includeWatching value in fundrawtransaction
Previously if you called fundrawtransaction and set includeWatching to false it'd act as through you set it to true.
1 parent dbd2c13 commit 61e1eb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2420,7 +2420,7 @@ UniValue fundrawtransaction(const UniValue& params, bool fHelp)
24202420

24212421
bool includeWatching = false;
24222422
if (params.size() > 1)
2423-
includeWatching = true;
2423+
includeWatching = params[1].get_bool();
24242424

24252425
CMutableTransaction tx(origTx);
24262426
CAmount nFee;

0 commit comments

Comments
 (0)