asdasdsadas

This commit is contained in:
Thomas Zarebczan 2018-11-16 19:18:38 -05:00
parent f8cc3ab17b
commit f6bdbf17f0

View file

@ -428,7 +428,7 @@ class Blockchain(util.PrintError):
return GENESIS_BITS, MAX_TARGET
if index == 0:
return GENESIS_BITS, MAX_TARGET
first = self.read_header(index -1)
first = self.read_header(index)
assert last is not None, "Last shouldn't be none"
# bits to target
bits = last.get('bits')