From c4b0c08f7c91bcef48dd023982ff132795575247 Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Mon, 16 Sep 2019 12:11:05 -0400 Subject: Update tx-size-small comment with relevant CVE disclosure --- src/validation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/validation.cpp b/src/validation.cpp index 6a9b0c95fb..5b195bf7da 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -461,7 +461,8 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool // Do not work on transactions that are too small. // A transaction with 1 segwit input and 1 P2WPHK output has non-witness size of 82 bytes. - // Transactions smaller than this are not relayed to reduce unnecessary malloc overhead. + // Transactions smaller than this are not relayed to mitigate CVE-2017-12842 by not relaying + // 64-byte transactions. if (::GetSerializeSize(tx, PROTOCOL_VERSION | SERIALIZE_TRANSACTION_NO_WITNESS) < MIN_STANDARD_TX_NONWITNESS_SIZE) return state.Invalid(ValidationInvalidReason::TX_NOT_STANDARD, false, REJECT_NONSTANDARD, "tx-size-small"); -- cgit v1.2.3