Browse Source

interface: scripthash.get_history: fix tx order check

logic bug
patch-4
SomberNight 3 years ago
parent
commit
2599010eed
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/interface.py

2
electrum/interface.py

@ -959,7 +959,7 @@ class Interface(Logger):
if height in (-1, 0):
assert_dict_contains_field(tx_item, field_name='fee')
assert_non_negative_integer(tx_item['fee'])
prev_height = - float("inf") # this ensures confirmed txs can't follow mempool txs
prev_height = float("inf") # this ensures confirmed txs can't follow mempool txs
else:
# check monotonicity of heights
if height < prev_height:

Loading…
Cancel
Save