Add calcpow RPC

Calculate PoW hash for a block candidate
This commit is contained in:
Howard Chu
2021-11-19 23:22:43 +00:00
parent 6d94953be2
commit 0221b01519
5 changed files with 73 additions and 5 deletions
@@ -142,6 +142,8 @@ namespace cryptonote
);
class Blockchain;
bool get_block_longhash(const Blockchain *pb, const blobdata& bd, crypto::hash& res, const uint64_t height,
const int major_version, const crypto::hash *seed_hash, const int miners);
bool get_block_longhash(const Blockchain *pb, const block& b, crypto::hash& res, const uint64_t height, const int miners);
bool get_block_longhash(const Blockchain *pb, const block& b, crypto::hash& res, const uint64_t height, const crypto::hash *seed_hash, const int miners);
void get_altblock_longhash(const block& b, crypto::hash& res, const uint64_t main_height, const uint64_t height,