RandomX: try to recover after an error

This commit is contained in:
SChernykh
2023-08-21 11:01:57 +02:00
parent 8d65a99fe4
commit bc0634a541
5 changed files with 32 additions and 12 deletions

View File

@@ -393,8 +393,7 @@ int PoolBlock::deserialize(const uint8_t* data, size_t size, const SideChain& si
}
}
catch (std::exception& e) {
const char* msg = e.what();
LOGERR(0, "Exception in PoolBlock::deserialize(): " << (msg ? msg : "unknown exception"));
LOGERR(0, "Exception in PoolBlock::deserialize(): " << e.what());
return __LINE__;
}