1
0

verifier: fix a race during reorgs

related: 41e088693d
If our guess of a txn getting confirmed at the same height in the new chain
as it was at in the old chain is incorrect, there is a race between the
verifier and the synchronizer. If the verifier wins, the exception will cause
us to disconnect.
This commit is contained in:
SomberNight
2018-09-17 03:35:25 +02:00
parent dcab22dcc7
commit aee2d8e120
3 changed files with 19 additions and 6 deletions

View File

@@ -75,9 +75,6 @@ class Synchronizer(PrintError):
history = self.wallet.history.get(addr, [])
if history_status(history) == status:
return
# note that at this point 'result' can be None;
# if we had a history for addr but now the server is telling us
# there is no history
if addr in self.requested_histories:
return
# request address history