|
@ -66,7 +66,7 @@ bool ethash_io_write(char const *dirname, |
|
|
p.full_size = ethash_get_datasize(block_number); |
|
|
p.full_size = ethash_get_datasize(block_number); |
|
|
// allocate the bytes
|
|
|
// allocate the bytes
|
|
|
uint8_t *temp_data_ptr = malloc(p.full_size); |
|
|
uint8_t *temp_data_ptr = malloc(p.full_size); |
|
|
if (!(*temp_data_ptr)) { |
|
|
if (!*temp_data_ptr) { |
|
|
goto end; |
|
|
goto end; |
|
|
} |
|
|
} |
|
|
ethash_prep_full(temp_data_ptr, &p, cache); |
|
|
ethash_prep_full(temp_data_ptr, &p, cache); |
|
|