1
0

verifier: don't try to request same chunk multiple times

This commit is contained in:
SomberNight
2018-09-08 19:11:02 +02:00
parent b33b2c0945
commit 77d86f074f
2 changed files with 10 additions and 3 deletions

View File

@@ -70,7 +70,7 @@ class SPV(ThreadJob):
if header is None:
index = tx_height // 2016
if index < len(blockchain.checkpoints):
await interface.group.spawn(self.network.request_chunk, tx_height, None)
await interface.group.spawn(self.network.request_chunk(tx_height, None, can_return_early=True))
elif (tx_hash not in self.requested_merkle
and tx_hash not in self.merkle_roots):
self.print_error('requested merkle', tx_hash)