@@ -2506,9 +2506,7 @@ UniValue listunspent(const JSONRPCRequest& request)
2506
2506
" ,...\n "
2507
2507
" ]\n "
2508
2508
" 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 "
2512
2510
" \n Result\n "
2513
2511
" [ (array of json object)\n "
2514
2512
" {\n "
@@ -2521,7 +2519,10 @@ UniValue listunspent(const JSONRPCRequest& request)
2521
2519
" \" confirmations\" : n, (numeric) The number of confirmations\n "
2522
2520
" \" redeemScript\" : n (string) The redeemScript if scriptPubKey is P2SH\n "
2523
2521
" \" 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 "
2525
2526
" }\n "
2526
2527
" ,...\n "
2527
2528
" ]\n "
@@ -2606,6 +2607,7 @@ UniValue listunspent(const JSONRPCRequest& request)
2606
2607
entry.push_back (Pair (" confirmations" , out.nDepth ));
2607
2608
entry.push_back (Pair (" spendable" , out.fSpendable ));
2608
2609
entry.push_back (Pair (" solvable" , out.fSolvable ));
2610
+ entry.push_back (Pair (" safe" , out.fSafe ));
2609
2611
results.push_back (entry);
2610
2612
}
2611
2613
0 commit comments