mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
use add, not getTransaction
This commit is contained in:
@@ -162,7 +162,7 @@ bool Ledger::addTransaction(Transaction::pointer trans)
|
||||
assert(!mAccepted);
|
||||
assert(!!trans->getID());
|
||||
Serializer s;
|
||||
trans->getSTransaction()->getTransaction(s, false);
|
||||
trans->getSTransaction()->add(s);
|
||||
SHAMapItem::pointer item = boost::make_shared<SHAMapItem>(trans->getID(), s.peekData());
|
||||
if (!mTransactionMap->addGiveItem(item, true)) return false;
|
||||
mTotCoins -= trans->getFee();
|
||||
|
||||
@@ -85,7 +85,7 @@ Transaction::pointer NetworkOPs::processTransaction(Transaction::pointer trans,
|
||||
|
||||
newcoin::TMTransaction tx;
|
||||
Serializer s;
|
||||
trans->getSTransaction()->getTransaction(s, false);
|
||||
trans->getSTransaction()->add(s);
|
||||
tx.set_rawtransaction(&s.getData().front(), s.getLength());
|
||||
tx.set_status(newcoin::tsCURRENT);
|
||||
tx.set_receivetimestamp(getNetworkTimeNC());
|
||||
|
||||
Reference in New Issue
Block a user