Skip to content

Commit

Permalink
(WIP) Namecoin / AuxPoW: Fix checkpoint exporting
Browse files Browse the repository at this point in the history
TODO: Needs rebase once cp_height merged upstream.
  • Loading branch information
JeremyRand committed Nov 5, 2019
1 parent 41bda45 commit cf81d2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electrum/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ async def export_purported_checkpoints(self, cp_height, path):
res = await self.session.send_request('blockchain.block.header', [retarget_first_height, cp_height], timeout=timeout)

if 'root' in res and 'branch' in res and 'header' in res:
retarget_first_header = blockchain.deserialize_header(bytes.fromhex(res['header']), retarget_first_height)
retarget_first_header = blockchain.deserialize_pure_header(bytes.fromhex(res['header']), retarget_first_height)
retarget_last_chainwork = self.blockchain.get_chainwork(retarget_last_height)
retarget_last_hash = self.blockchain.get_hash(retarget_last_height)
retarget_last_bits = self.blockchain.target_to_bits(self.blockchain.get_target(retarget_last_chunk_index))
Expand Down

0 comments on commit cf81d2b

Please sign in to comment.