programmingbitcoin icon indicating copy to clipboard operation
programmingbitcoin copied to clipboard

BlockTest.test_target calls not implemented block.difficulty()

Open petercerno opened this issue 5 years ago • 0 comments

The following line should be removed:

https://github.com/jimmysong/programmingbitcoin/blob/2a6558263923214320bbdeb10826464fe24ef540/code-ch09/block.py#L153

The reason is that in Chapter9.ipynb in Exercise 9 one first implements the method bits_to_target(bits) and only then in Exercise 10 the method difficulty.

petercerno avatar Aug 13 '20 20:08 petercerno