1
0
Fork 0
forked from lthn/blockchain

minor fixes

This commit is contained in:
sowle 2020-07-08 18:19:09 +03:00
parent 9ab4cb048e
commit ec833ec490
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
2 changed files with 10 additions and 8 deletions

View file

@ -608,7 +608,8 @@ POP_GCC_WARNINGS
t_pod_type hex_to_pod(const std::string& hex_str)
{
t_pod_type p = AUTO_VAL_INIT(p);
hex_to_pod(hex_str, p);
if (!hex_to_pod(hex_str, p))
return AUTO_VAL_INIT_T(t_pod_type);
return p;
}
//----------------------------------------------------------------------------

View file

@ -31,13 +31,14 @@ namespace currency
{
//-----------------------------------------------------------------------------------------------
core::core(i_currency_protocol* pprotocol):
m_mempool(m_blockchain_storage, pprotocol),
m_blockchain_storage(m_mempool),
m_miner(this, m_blockchain_storage),
m_miner_address(boost::value_initialized<account_public_address>()),
m_starter_message_showed(false),
m_critical_error_handler(nullptr)
core::core(i_currency_protocol* pprotocol)
: m_mempool(m_blockchain_storage, pprotocol)
, m_blockchain_storage(m_mempool)
, m_miner(this, m_blockchain_storage)
, m_miner_address(boost::value_initialized<account_public_address>())
, m_starter_message_showed(false)
, m_critical_error_handler(nullptr)
, m_stop_after_height(0)
{
set_currency_protocol(pprotocol);
}