nicehash / Specifications

Protocol specifications for various algorithms used @ NiceHash
77 stars 41 forks source link

Ethereum stratum question #3

Open rjl493456442 opened 6 years ago

rjl493456442 commented 6 years ago

In the Ethereum stratum mining protocol, it said the Target field is no necessary been included since the target can be calculated by miner itself.

My question is how can miner calculate the target? The difficulty is depends on the parent block difficulty and the interval between parent block and current mining block. Those two are totally transparent for miner.

jgillich commented 6 years ago

Difficulty in terms of Stratum is not the same as network difficulty, see: https://bitcoin.stackexchange.com/a/61726

I have a Go implementation that converts target to difficulty that I ported over from cpp-ethereum. Can't really tell you much about it though.