Skip to content

Commit

Permalink
(WIP) Remove superfluous cp_height code
Browse files Browse the repository at this point in the history
TODO: Untested
TODO: Probably should submit this upstream to Electrum
  • Loading branch information
JeremyRand committed Mar 25, 2019
1 parent 1cb611a commit b997b13
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions electrum_nmc/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,6 @@ async def request_chunk(self, height, tip=None, *, can_return_early=False):
size = min(size, tip - index * 2016 + 1)
size = max(size, 0)
try:
cp_height = constants.net.max_checkpoint()
if index * 2016 + size - 1 > cp_height:
cp_height = 0
self._requested_chunks.add(index)
res, proof_was_provided = await self.request_headers(index * 2016, size)
finally:
Expand Down

0 comments on commit b997b13

Please sign in to comment.