Browse Source

Mutex guard m_fulls on eval()

cl-refactor
Lefteris Karapetsas 10 years ago
parent
commit
b325a5c3b2
  1. 1
      libethcore/EthashAux.cpp

1
libethcore/EthashAux.cpp

@ -240,6 +240,7 @@ Ethash::Result EthashAux::eval(BlockInfo const& _header, Nonce const& _nonce)
Ethash::Result EthashAux::eval(h256 const& _seedHash, h256 const& _headerHash, Nonce const& _nonce)
{
DEV_GUARDED(get()->x_fulls)
if (FullType dag = get()->m_fulls[_seedHash].lock())
return dag->compute(_headerHash, _nonce);
DEV_IF_THROWS(return EthashAux::get()->light(_seedHash)->compute(_headerHash, _nonce))

Loading…
Cancel
Save