2015-01-09 22:36:42 +01:00
|
|
|
#ifndef BITMESSAGE_POW_H
|
|
|
|
#define BITMESSAGE_POW_H
|
|
|
|
|
2015-01-11 03:59:32 +01:00
|
|
|
#define MAX_POOL_SIZE 1024
|
|
|
|
#define HASH_SIZE 64
|
|
|
|
|
2015-01-09 23:09:01 +01:00
|
|
|
int pow(size_t pool_size,
|
|
|
|
uint64_t target,
|
2015-01-09 22:36:42 +01:00
|
|
|
const uint8_t* initial_hash,
|
2015-01-09 23:09:01 +01:00
|
|
|
uint64_t max_nonce,
|
|
|
|
uint64_t* nonce);
|
2015-01-09 22:36:42 +01:00
|
|
|
|
|
|
|
#endif
|