mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-26 06:44:32 +00:00
Catch exceptions from non-canonical encoding and print only to log
This commit is contained in:
parent
291f8aa5da
commit
12c5a16c4e
@ -5567,6 +5567,11 @@ bool ProcessMessages(CNode* pfrom)
|
|||||||
// Allow exceptions from over-long size
|
// Allow exceptions from over-long size
|
||||||
LogPrintf("%s(%s, %u bytes): Exception '%s' caught\n", __func__, SanitizeString(strCommand), nMessageSize, e.what());
|
LogPrintf("%s(%s, %u bytes): Exception '%s' caught\n", __func__, SanitizeString(strCommand), nMessageSize, e.what());
|
||||||
}
|
}
|
||||||
|
else if (strstr(e.what(), "non-canonical ReadCompactSize()"))
|
||||||
|
{
|
||||||
|
// Allow exceptions from non-canonical encoding
|
||||||
|
LogPrintf("%s(%s, %u bytes): Exception '%s' caught\n", __func__, SanitizeString(strCommand), nMessageSize, e.what());
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PrintExceptionContinue(&e, "ProcessMessages()");
|
PrintExceptionContinue(&e, "ProcessMessages()");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user