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