mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-23 13:24:18 +00:00
Fail in DecodeHexTx if there is extra data at the end
This commit is contained in:
parent
1c2edd9f67
commit
7ea0ad539f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user