mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-03 01:15:53 +00:00
Handle all the weird edge cases, such as:
A remote transaction is received *from* a local account. We neeed to update our balance and sequence tracking. A local transaction loses to a conflict.
This commit is contained in:
@@ -365,7 +365,7 @@ Json::Value RPCServer::doSendTo(Json::Value& params)
|
||||
LocalTransaction::pointer lt(new LocalTransaction(destAccount, iAmount, iTag));
|
||||
if(!lt->makeTransaction())
|
||||
return JSONRPCError(500, "Insufficient funds in unlocked accounts");
|
||||
lt->applyTransaction();
|
||||
lt->performTransaction();
|
||||
return lt->getTransaction()->getJson(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user