This repository was archived by the owner on Apr 24, 2022. It is now read-only.
File tree 6 files changed +7
-269
lines changed
6 files changed +7
-269
lines changed Original file line number Diff line number Diff line change 34
34
#include < boost/optional.hpp>
35
35
36
36
#include < libethcore/Exceptions.h>
37
- #include < libdevcore/SHA3.h>
38
37
#include < libethcore/EthashAux.h>
39
38
#include < libethcore/Farm.h>
40
39
#include < ethminer-buildinfo.h>
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ find_package(Threads)
6
6
add_library (devcore ${SOURCES} ${HEADERS} )
7
7
target_link_libraries (devcore PUBLIC Boost::boost Boost::system )
8
8
target_link_libraries (devcore PRIVATE Threads::Threads)
9
+
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
// / Licensed under GNU General Public License, Version 3. See the LICENSE file.
4
4
5
5
#include " BlockHeader.h"
6
- # include " EthashAux.h "
6
+
7
7
#include < libdevcore/Common.h>
8
- #include < libdevcore/Log.h>
9
8
#include < libdevcore/RLP.h>
10
9
10
+ #include < ethash/keccak.hpp>
11
+
11
12
namespace dev
12
13
{
13
14
namespace eth
@@ -25,7 +26,9 @@ h256 const& BlockHeader::hashWithout() const
25
26
{
26
27
RLPStream s (BasicFields);
27
28
streamRLPFields (s);
28
- m_hashWithout = sha3 (s.out ());
29
+ const bytes& rlp = s.out ();
30
+ auto hash = ethash::keccak256 (rlp.data (), rlp.size ());
31
+ m_hashWithout = h256{hash.bytes , h256::ConstructFromPointer};
29
32
}
30
33
return m_hashWithout;
31
34
}
Original file line number Diff line number Diff line change 8
8
9
9
#include < libdevcore/Common.h>
10
10
#include < libdevcore/RLP.h>
11
- #include < libdevcore/SHA3.h>
12
11
13
12
namespace dev
14
13
{
You can’t perform that action at this time.
0 commit comments