Open rjl493456442 opened 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.
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.