Browse Source

Adding ethash_full_data()

cl-refactor
Lefteris Karapetsas 10 years ago
parent
commit
12e408ee8c
  1. 4
      ethash.h
  2. 5
      internal.c

4
ethash.h

@ -200,6 +200,10 @@ bool ethash_full_compute(
ethash_h256_t const* header_hash,
uint64_t const nonce
);
/**
* Get a pointer to the full DAG data
*/
void *ethash_full_data(ethash_full_t full);
/**
* Get a pointer to the cache object held by the full client
*

5
internal.c

@ -467,6 +467,11 @@ bool ethash_full_compute(
);
}
void *ethash_full_data(ethash_full_t full)
{
return full->data;
}
ethash_cache_t* ethash_full_get_cache(ethash_full_t full)
{
return full->cache;

Loading…
Cancel
Save