diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2011-05-26 23:35:00 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2011-05-26 23:35:00 +0200 |
commit | 5e1e458ecb0f5d8e42e1a7fc3b8f9e1d37f52e46 (patch) | |
tree | 2347755d1781c9b11a4702a594dad8ace403f0c8 /src/util.h | |
parent | db69432dcdc8bcf9fcc4b2554593d9e0fac4918a (diff) |
loss of significance in difficulty (by lfm)
For instance any nBits compressed value from 0x1a44b800 thru
0x1a44b9ff will show as difficulty 244139.4816. This patch will
more accurately convert the nBits compressed values to the double
difficulty.
This will display any of the recent difficulty levels slightly
differently though. Early difficulties and testnet difficulties are
not large enough to trigger this bug.
None of the actual targets or compressed targets are changed, only
the conversion to the floating point difficulty is changed and afaik
it is only ever displayed, never converted back so the patch does not
effect the target calculations, binary files, databases nor the binary
protocol.
Diffstat (limited to 'src/util.h')
0 files changed, 0 insertions, 0 deletions