mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Make 'tx' RPC command with no parameteres work. It displays all
"in progress" transactions that affect local accounts.
This commit is contained in:
@@ -882,3 +882,11 @@ void Wallet::applyTransaction(Transaction::pointer txn)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Wallet::addLocalTransactions(Json::Value& ret)
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock sl(mLock);
|
||||
for(std::map<uint256, LocalTransaction::pointer>::iterator it=mTransactions.begin();
|
||||
it!=mTransactions.end(); ++it)
|
||||
ret[it->first.GetHex()]=it->second->getJson();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user