Function ethash_sys::ethash_light_new_internal [] [src]

pub unsafe extern "C" fn ethash_light_new_internal(
    cache_size: u64,
    seed: *const ethash_h256_t
) -> ethash_light_t

Allocate and initialize a new ethash_light handler. Internal version

@param cache_size The size of the cache in bytes @param seed Block seedhash to be used during the computation of the cache nodes @return Newly allocated ethash_light handler or NULL in case of ERRNOMEM or invalid parameters used for @ref ethash_compute_cache_nodes()