forked from lthn/blockchain
minor fixes
This commit is contained in:
parent
9ab4cb048e
commit
ec833ec490
2 changed files with 10 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue