diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core_read.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core_read.cpp b/src/core_read.cpp index a5f232c228..a8d667e3bc 100644 --- a/src/core_read.cpp +++ b/src/core_read.cpp @@ -111,6 +111,8 @@ bool DecodeHexTx(CMutableTransaction& tx, const std::string& strHexTx, bool fTry CDataStream ssData(txData, SER_NETWORK, PROTOCOL_VERSION); try { ssData >> tx; + if (!ssData.empty()) + return false; } catch (const std::exception&) { return false; |