use add, not getTransaction

This commit is contained in:
JoelKatz
2012-06-01 15:41:13 -07:00
parent 3751aea08b
commit c32e18d2ff
2 changed files with 2 additions and 2 deletions

View File

@@ -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();

View File

@@ -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());