Questions tagged [nbits]

3 questions
8
votes
3 answers

Why this ugly looking formula to calculate 'target' from 'nBits' in block header: target = coefficient * 256**(exponent-3)

Why this ugly looking formula to calculate 'target' from 'nBits' in block header: target = coefficient * 256**(exponent-3). Why not? : target = coefficient * 256**(exponent). What is the need of subtracting 3. All we need is to be able to…
Ravi Patel
  • 81
  • 2
3
votes
2 answers

How to calculate nBits from target?

I was wondering how the nBits are calculated from the target, I know how the the target is calculated from nBits, but how is the nBits calculated from the target?
0
votes
1 answer

How to calculate nbits from powlimit

I remember some where was table and python scrypt for do this , when reinstall my debian i was lose this script. Example we hv uint256S("00000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); what is = 0x1d00ffff
tseries
  • 205
  • 2
  • 13