Changeset View
Changeset View
Standalone View
Standalone View
src/test/validation_tests.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | BOOST_AUTO_TEST_CASE(validation_load_external_block_file) { | ||||
{ | { | ||||
CAutoFile outs(fp, SER_DISK, CLIENT_VERSION); | CAutoFile outs(fp, SER_DISK, CLIENT_VERSION); | ||||
outs << size; | outs << size; | ||||
outs << block; | outs << block; | ||||
outs.release(); | outs.release(); | ||||
} | } | ||||
fseek(fp, 0, SEEK_SET); | fseek(fp, 0, SEEK_SET); | ||||
BOOST_CHECK_NO_THROW( | BOOST_CHECK_NO_THROW({ LoadExternalBlockFile(config, fp, 0); }); | ||||
{ LoadExternalBlockFile(config, chainparams, fp, 0); }); | |||||
} | } | ||||
BOOST_AUTO_TEST_SUITE_END() | BOOST_AUTO_TEST_SUITE_END() |