mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-02 18:25:21 +00:00
synchronizer: remove warning about improperly sorted histories
Not sure if it is still useful but in its current form it was giving false positives all the time. Specifically, the expected sorting is: confirmed txns in blockchain order + mempool txns in arbitrary order. The "sorted" invocation puts mempool txns at the beginning, so the warning is always triggered if there is any unconfirmed history.
This commit is contained in:
parent
75a85a8161
commit
92e510f8aa
1 changed files with 0 additions and 5 deletions
|
@ -124,11 +124,6 @@ class Synchronizer(ThreadJob):
|
|||
# tx_fees
|
||||
tx_fees = [(item['tx_hash'], item.get('fee')) for item in result]
|
||||
tx_fees = dict(filter(lambda x:x[1] is not None, tx_fees))
|
||||
# Note if the server hasn't been patched to sort the items properly
|
||||
if hist != sorted(hist, key=lambda x:x[1]):
|
||||
interface = self.network.interface
|
||||
# note: we don't actually know which interface was used if it was *just* changed
|
||||
if interface: interface.print_error("serving improperly sorted address histories")
|
||||
# Check that txids are unique
|
||||
if len(hashes) != len(result):
|
||||
self.print_error("error: server history has non-unique txids: %s"% addr)
|
||||
|
|
Loading…
Add table
Reference in a new issue