Fix build missed deserializer changes (#1703)
This commit is contained in:
parent
3ddee7c79c
commit
5522a04e3b
2 changed files with 9 additions and 8 deletions
|
|
@ -1399,9 +1399,9 @@ node (init_a, io_ctx_a, application_path_a, alarm_a, nano::node_config (peering_
|
||||||
nano::node::node (nano::node_init & init_a, boost::asio::io_context & io_ctx_a, boost::filesystem::path const & application_path_a, nano::alarm & alarm_a, nano::node_config const & config_a, nano::work_pool & work_a, nano::node_flags flags_a) :
|
nano::node::node (nano::node_init & init_a, boost::asio::io_context & io_ctx_a, boost::filesystem::path const & application_path_a, nano::alarm & alarm_a, nano::node_config const & config_a, nano::work_pool & work_a, nano::node_flags flags_a) :
|
||||||
io_ctx (io_ctx_a),
|
io_ctx (io_ctx_a),
|
||||||
config (config_a),
|
config (config_a),
|
||||||
|
flags (flags_a),
|
||||||
alarm (alarm_a),
|
alarm (alarm_a),
|
||||||
work (work_a),
|
work (work_a),
|
||||||
flags (flags_a),
|
|
||||||
store_impl (std::make_unique<nano::mdb_store> (init_a.block_store_init, config.logging, application_path_a / "data.ldb", config_a.lmdb_max_dbs, !flags.disable_unchecked_drop, flags.sideband_batch_size)),
|
store_impl (std::make_unique<nano::mdb_store> (init_a.block_store_init, config.logging, application_path_a / "data.ldb", config_a.lmdb_max_dbs, !flags.disable_unchecked_drop, flags.sideband_batch_size)),
|
||||||
store (*store_impl),
|
store (*store_impl),
|
||||||
wallets_store_impl (std::make_unique<nano::mdb_wallets_store> (init_a.wallets_store_init, application_path_a / "wallets.ldb", config_a.lmdb_max_dbs)),
|
wallets_store_impl (std::make_unique<nano::mdb_wallets_store> (init_a.wallets_store_init, application_path_a / "wallets.ldb", config_a.lmdb_max_dbs)),
|
||||||
|
|
|
||||||
|
|
@ -342,14 +342,15 @@ bool nano::unchecked_info::deserialize (nano::stream & stream_a)
|
||||||
bool error (block == nullptr);
|
bool error (block == nullptr);
|
||||||
if (!error)
|
if (!error)
|
||||||
{
|
{
|
||||||
error = nano::read (stream_a, account.bytes);
|
try
|
||||||
if (!error)
|
|
||||||
{
|
{
|
||||||
error = nano::read (stream_a, modified);
|
nano::read (stream_a, account.bytes);
|
||||||
if (!error)
|
nano::read (stream_a, modified);
|
||||||
{
|
nano::read (stream_a, verified);
|
||||||
error = nano::read (stream_a, verified);
|
}
|
||||||
}
|
catch (std::runtime_error const &)
|
||||||
|
{
|
||||||
|
error = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return error;
|
return error;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue