mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-24 13:05:53 +00:00
Add the ledger time to the JSON account transaction event.
This commit is contained in:
@@ -1079,6 +1079,7 @@ Json::Value NetworkOPs::transJson(const SerializedTransaction& stTxn, TER terRes
|
|||||||
if (bAccepted) {
|
if (bAccepted) {
|
||||||
jvObj["ledger_index"] = lpCurrent->getLedgerSeq();
|
jvObj["ledger_index"] = lpCurrent->getLedgerSeq();
|
||||||
jvObj["ledger_hash"] = lpCurrent->getHash().ToString();
|
jvObj["ledger_hash"] = lpCurrent->getHash().ToString();
|
||||||
|
jvObj["transaction"]["date"] = lpCurrent->getCloseTimeNC();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user