mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
Make null hash constants constexpr
Simplify m_template initialization in miner
This commit is contained in:
parent
4ad191ffa9
commit
928f4be953
2 changed files with 3 additions and 3 deletions
|
@ -89,8 +89,8 @@ namespace crypto {
|
||||||
epee::to_hex::formatted(o, epee::as_byte_span(v)); return o;
|
epee::to_hex::formatted(o, epee::as_byte_span(v)); return o;
|
||||||
}
|
}
|
||||||
|
|
||||||
const static crypto::hash null_hash = {};
|
constexpr static crypto::hash null_hash = {};
|
||||||
const static crypto::hash8 null_hash8 = {};
|
constexpr static crypto::hash8 null_hash8 = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
CRYPTO_MAKE_HASHABLE(hash)
|
CRYPTO_MAKE_HASHABLE(hash)
|
||||||
|
|
|
@ -99,7 +99,7 @@ namespace cryptonote
|
||||||
|
|
||||||
|
|
||||||
miner::miner(i_miner_handler* phandler):m_stop(1),
|
miner::miner(i_miner_handler* phandler):m_stop(1),
|
||||||
m_template(block{}),
|
m_template{},
|
||||||
m_template_no(0),
|
m_template_no(0),
|
||||||
m_diffic(0),
|
m_diffic(0),
|
||||||
m_thread_index(0),
|
m_thread_index(0),
|
||||||
|
|
Loading…
Reference in a new issue