With all this rope lying about, someone might get hung.

(Wrong length for SerialializedTransaction.)
This commit is contained in:
JoelKatz
2012-06-01 16:25:59 -07:00
parent d5100c1266
commit 9d41104d83
6 changed files with 19 additions and 10 deletions

View File

@@ -580,7 +580,7 @@ void Peer::recvTransaction(newcoin::TMTransaction& packet)
std::string rawTx = packet.rawtransaction();
Serializer s(std::vector<unsigned char>(rawTx.begin(), rawTx.end()));
SerializerIterator sit(s);
SerializedTransaction::pointer stx = boost::make_shared<SerializedTransaction>(boost::ref(sit), -1);
SerializedTransaction::pointer stx = boost::make_shared<SerializedTransaction>(boost::ref(sit));
tx = boost::make_shared<Transaction>(stx, true);
if (tx->getStatus() == INVALID) throw(0);