@@ -2506,9 +2506,7 @@ UniValue listunspent(const JSONRPCRequest& request)
25062506 " ,...\n "
25072507 " ]\n "
25082508 " 4. include_unsafe (bool, optional, default=true) Include outputs that are not safe to spend\n "
2509- " because they come from unconfirmed untrusted transactions or unconfirmed\n "
2510- " replacement transactions (cases where we are less sure that a conflicting\n "
2511- " transaction won't be mined).\n "
2509+ " See description of \" safe\" attribute below.\n "
25122510 " \n Result\n "
25132511 " [ (array of json object)\n "
25142512 " {\n "
@@ -2521,7 +2519,10 @@ UniValue listunspent(const JSONRPCRequest& request)
25212519 " \" confirmations\" : n, (numeric) The number of confirmations\n "
25222520 " \" redeemScript\" : n (string) The redeemScript if scriptPubKey is P2SH\n "
25232521 " \" spendable\" : xxx, (bool) Whether we have the private keys to spend this output\n "
2524- " \" solvable\" : xxx (bool) Whether we know how to spend this output, ignoring the lack of keys\n "
2522+ " \" solvable\" : xxx, (bool) Whether we know how to spend this output, ignoring the lack of keys\n "
2523+ " \" safe\" : xxx (bool) Whether this output is considered safe to spend. Unconfirmed transactions\n "
2524+ " from outside keys and unconfirmed replacement transactions are considered unsafe\n "
2525+ " and are not eligible for spending by fundrawtransaction and sendtoaddress.\n "
25252526 " }\n "
25262527 " ,...\n "
25272528 " ]\n "
@@ -2606,6 +2607,7 @@ UniValue listunspent(const JSONRPCRequest& request)
26062607 entry.push_back (Pair (" confirmations" , out.nDepth ));
26072608 entry.push_back (Pair (" spendable" , out.fSpendable ));
26082609 entry.push_back (Pair (" solvable" , out.fSolvable ));
2610+ entry.push_back (Pair (" safe" , out.fSafe ));
26092611 results.push_back (entry);
26102612 }
26112613
0 commit comments