Skip to content

Commit

Permalink
[Namecoin] Fix typo in get_target
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedbodi committed Jun 27, 2020
1 parent 6c23322 commit d47fec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electrum/networks/namecoin_mainnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_target(cls, height: int, blockchain) -> int:
# Namecoin: Apply retargeting hardfork after AuxPoW start
first = blockchain.read_header(height - cls.INTERVAL - 1)
else:
first = blockchain.read_header(hight - cls.INTERVAL)
first = blockchain.read_header(height - cls.INTERVAL)

last = blockchain.read_header(height - 1)
if not first or not last:
Expand Down

0 comments on commit d47fec2

Please sign in to comment.