Extend API with functions required in Stratum #30
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "extend_api"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: jur0
The
aeminer_pow_cuckoo:generate/5
has theData
parameter, which is a serialized header binary of size 364 bytes, which is hashed to 64 bytes and then used as the input of the miner itself. This is ok if the miner and the ae node are on the same machine.However, when Stratum notifies workers about a new job, it needs to send the
Data
part and its size should be limited. It's preferable to send 64 bytes, so there are 2 new functions in the API:hash_data/1
- converts 364 bytes of data to 64 bytesgenerate_from_hash/5
- just likegenerate/5
, but doesn't convert its inputData
to 64 bytes, it expects the 64 bytes inputCreated by: skkw
Review: Approved
Created by: sennui
Review: Approved
Merged by: jur0 at 2019-04-12 08:31:09 UTC