diff options
| author | Gavin Andresen <[email protected]> | 2013-08-20 14:46:01 +1000 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-08-20 14:46:01 +1000 |
| commit | 08dd92060bc2e79ef62b383a8a71a07ce1e2699d (patch) | |
| tree | 36f8ed532eaf96a5bb47e1a500e905ec29e1c393 /src/main.cpp | |
| parent | Make RPC password resistant to timing attacks (diff) | |
| download | archived-discoin-08dd92060bc2e79ef62b383a8a71a07ce1e2699d.tar.xz archived-discoin-08dd92060bc2e79ef62b383a8a71a07ce1e2699d.zip | |
Revert "Truncate oversize 'tx' messages before relaying/storing."
This reverts commit 7cc960f8f57e7fe90ee7aa0ccd3e3c6c89ec5a25.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/main.cpp b/src/main.cpp index effac19fb..769f2dc41 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3508,16 +3508,6 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) CInv inv(MSG_TX, tx.GetHash()); pfrom->AddInventoryKnown(inv); - // Truncate messages to the size of the tx in them - unsigned int nSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION); - unsigned int oldSize = vMsg.size(); - if (nSize < oldSize) { - vMsg.resize(nSize); - printf("truncating oversized TX %s (%u -> %u)\n", - tx.GetHash().ToString().c_str(), - oldSize, nSize); - } - bool fMissingInputs = false; CValidationState state; if (tx.AcceptToMemoryPool(state, true, true, &fMissingInputs)) |