MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / T

Method T

bitcoin/tests/test_core.py:74–77  ·  view source on GitHub ↗
(nbits, expected)

Source from the content-addressed store, hash-verified

72
73 def test_calc_difficulty(self):
74 def T(nbits, expected):
75 actual = CBlockHeader.calc_difficulty(nbits)
76 actual = round(actual, 3)
77 self.assertEqual(actual, expected)
78
79 T(486604799, 1.000) # block 0
80 T(486594666, 1.183) # block 33333

Callers

nothing calls this directly

Calls 1

calc_difficultyMethod · 0.80

Tested by

no test coverage detected