mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Improvements for WS account_transaction_subscribe.
This commit is contained in:
@@ -818,11 +818,19 @@ void NetworkOPs::pubTransaction(const Ledger::pointer& lpCurrent, const Serializ
|
||||
}
|
||||
|
||||
Json::Value jvObj(Json::objectValue);
|
||||
std::string strToken;
|
||||
std::string strHuman;
|
||||
|
||||
jvObj["type"] = "accountTransactionProposed";
|
||||
transResultInfo(terResult, strToken, strHuman);
|
||||
|
||||
jvObj["type"] = "accountTransaction";
|
||||
jvObj["seq"] = lpCurrent->getLedgerSeq();
|
||||
jvObj["accounts"] = jvAccounts;
|
||||
jvObj["transaction"] = stTxn.getJson(0);
|
||||
jvObj["status"] = "proposed";
|
||||
jvObj["result"] = strToken;
|
||||
jvObj["result_message"] = strHuman;
|
||||
jvObj["result_code"] = terResult;
|
||||
|
||||
BOOST_FOREACH(InfoSub* ispListener, usisNotify)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user