Browse Source
Separate concepts of block difficulty and network difficulty in RPC "Block difficulty" is the difficulty listed in a block's header, which in the testnet can sometimes be min-difficulty (if time-since-last-block is too large). "Network difficulty" is the difficulty that the network was trying to satisfy at a particular block height. In mainnet this is always equal to the difficulty of the solved block for that height, but in testnet the network difficulty is derived from the last non-min-difficulty block difficulty. This commit fixes the RPC APIs that are intended to show network difficulty, so that on testnet they don't sometimes drop to 1.0, confusing users. Closes #1181pull/145/head
![sean+zkbot@leastauthority.com](/assets/img/avatar_default.png)
4 changed files with 59 additions and 5 deletions
Loading…
Reference in new issue