File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,13 @@ struct ethash_epoch_context
44
44
struct ethash_epoch_context_full ;
45
45
46
46
47
+ struct ethash_result
48
+ {
49
+ union ethash_hash256 final_hash ;
50
+ union ethash_hash256 mix_hash ;
51
+ };
52
+
53
+
47
54
/**
48
55
* Calculates the number of items in the light cache for given epoch.
49
56
*
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ static constexpr int num_dataset_accesses = ETHASH_NUM_DATASET_ACCESSES;
33
33
using epoch_context = ethash_epoch_context;
34
34
using epoch_context_full = ethash_epoch_context_full;
35
35
36
+ using result = ethash_result;
37
+
36
38
// / Constructs a 256-bit hash from an array of bytes.
37
39
// /
38
40
// / @param bytes A pointer to array of at least 32 bytes.
@@ -44,12 +46,6 @@ inline hash256 hash256_from_bytes(const uint8_t bytes[32]) noexcept
44
46
return h;
45
47
}
46
48
47
- struct result
48
- {
49
- hash256 final_hash;
50
- hash256 mix_hash;
51
- };
52
-
53
49
struct search_result
54
50
{
55
51
bool solution_found = false ;
You can’t perform that action at this time.
0 commit comments