Changeset View
Changeset View
Standalone View
Standalone View
src/test/fuzz/deserialize.cpp
Show All 33 Lines | |||||
#if BLOCK_DESERIALIZE | #if BLOCK_DESERIALIZE | ||||
try { | try { | ||||
CBlock block; | CBlock block; | ||||
ds >> block; | ds >> block; | ||||
} catch (const std::ios_base::failure &e) { | } catch (const std::ios_base::failure &e) { | ||||
return; | return; | ||||
} | } | ||||
#elif TRANSACTION_DESERIALIZE | |||||
try { | |||||
CTransaction tx(deserialize, ds); | |||||
} catch (const std::ios_base::failure &e) { | |||||
return; | |||||
} | |||||
#elif BLOCKLOCATOR_DESERIALIZE | #elif BLOCKLOCATOR_DESERIALIZE | ||||
try { | try { | ||||
CBlockLocator bl; | CBlockLocator bl; | ||||
ds >> bl; | ds >> bl; | ||||
} catch (const std::ios_base::failure &e) { | } catch (const std::ios_base::failure &e) { | ||||
return; | return; | ||||
} | } | ||||
#elif BLOCKMERKLEROOT | #elif BLOCKMERKLEROOT | ||||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |