mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Finish "txn <id>" RPC command.
This commit is contained in:
@@ -890,3 +890,12 @@ void Wallet::addLocalTransactions(Json::Value& ret)
|
||||
it!=mTransactions.end(); ++it)
|
||||
ret[it->first.GetHex()]=it->second->getJson();
|
||||
}
|
||||
|
||||
bool Wallet::getTxJson(const uint256& txn, Json::Value& ret)
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock sl(mLock);
|
||||
std::map<uint256, LocalTransaction::pointer>::iterator it=mTransactions.find(txn);
|
||||
if(it==mTransactions.end()) return false;
|
||||
ret=it->second->getJson();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user