From f36d1fdc08a137d9dabb1db61e84edf9414d0b21 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Tue, 24 Apr 2012 03:32:12 -0700 Subject: [PATCH] Remove a FIXME by fixing it. --- src/Peer.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Peer.cpp b/src/Peer.cpp index 14e190004..b7cdb675d 100644 --- a/src/Peer.cpp +++ b/src/Peer.cpp @@ -340,14 +340,13 @@ void Peer::recvTransaction(newcoin::TMTransaction& packet) Transaction::pointer tx; try { - std::string rawTx=packet.rawtransaction(); + std::string rawTx = packet.rawtransaction(); Serializer s(std::vector(rawTx.begin(), rawTx.end())); SerializerIterator sit(s); - SerializedTransaction::pointer stx=boost::make_shared(boost::ref(sit), -1); + SerializedTransaction::pointer stx = boost::make_shared(boost::ref(sit), -1); - if(stx->getTxnType()!=ttMAKE_PAYMENT) throw(0); // FIXME to support other transaction - tx=boost::make_shared(stx, true); - if(tx->getStatus()==INVALID) throw(0); + tx = boost::make_shared(stx, true); + if (tx->getStatus() == INVALID) throw(0); } catch (...) { @@ -359,7 +358,7 @@ void Peer::recvTransaction(newcoin::TMTransaction& packet) return; } - tx=theApp->getOPs().processTransaction(tx, this); + tx = theApp->getOPs().processTransaction(tx, this); if(tx->getStatus()!=INCLUDED) { // transaction wasn't accepted into ledger