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.
This commit is contained in:
Peter Todd 2015-11-13 15:45:29 -05:00
parent dbd2c135dd
commit 61e1eb2e1c
No known key found for this signature in database
GPG Key ID: C085F21CE7F4B9DC

View File

@ -2420,7 +2420,7 @@ UniValue fundrawtransaction(const UniValue& params, bool fHelp)
bool includeWatching = false;
if (params.size() > 1)
includeWatching = true;
includeWatching = params[1].get_bool();
CMutableTransaction tx(origTx);
CAmount nFee;