mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-03 20:21:10 +00:00
Revert "Truncate oversize 'tx' messages before relaying/storing."
This reverts commit 7cc960f8f57e7fe90ee7aa0ccd3e3c6c89ec5a25.
This commit is contained in:
parent
cdb3441b5c
commit
08dd92060b
10
src/main.cpp
10
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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user