mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
Updated help and tests for getreceivedby(account|address)
This commit is contained in:
@@ -892,9 +892,12 @@ Value ListReceived(const Array& params, bool fByAccounts)
|
||||
obj.push_back(Pair("amount", ValueFromAmount(nAmount)));
|
||||
obj.push_back(Pair("confirmations", (nConf == std::numeric_limits<int>::max() ? 0 : nConf)));
|
||||
Array transactions;
|
||||
BOOST_FOREACH(const uint256& item, (*it).second.txids)
|
||||
if (it != mapTally.end())
|
||||
{
|
||||
transactions.push_back(item.GetHex());
|
||||
BOOST_FOREACH(const uint256& item, (*it).second.txids)
|
||||
{
|
||||
transactions.push_back(item.GetHex());
|
||||
}
|
||||
}
|
||||
obj.push_back(Pair("txids", transactions));
|
||||
ret.push_back(obj);
|
||||
@@ -929,7 +932,8 @@ Value listreceivedbyaddress(const Array& params, bool fHelp)
|
||||
" \"address\" : receiving address\n"
|
||||
" \"account\" : the account of the receiving address\n"
|
||||
" \"amount\" : total amount received by the address\n"
|
||||
" \"confirmations\" : number of confirmations of the most recent transaction included");
|
||||
" \"confirmations\" : number of confirmations of the most recent transaction included\n"
|
||||
" \"txids\" : list of transactions with outputs to the address\n");
|
||||
|
||||
return ListReceived(params, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user