diff --git a/src/core_read.cpp b/src/core_read.cpp index 7cfda6dd6d..827b06ae53 100644 --- a/src/core_read.cpp +++ b/src/core_read.cpp @@ -113,6 +113,8 @@ bool DecodeHexTx(CTransaction& tx, const std::string& strHexTx, bool fTryNoWitne CDataStream ssData(txData, SER_NETWORK, PROTOCOL_VERSION); try { ssData >> tx; + if (!ssData.empty()) + return false; } catch (const std::exception&) { return false;