fix: receive_list might contain imported keys
This commit is contained in:
parent
c89fc345af
commit
f4cb687f4b
|
@ -665,13 +665,13 @@ class ElectrumWindow(QMainWindow):
|
||||||
|
|
||||||
if n==0:
|
if n==0:
|
||||||
tx = "None"
|
tx = "None"
|
||||||
if l == self.receive_list:
|
if address in self.wallet.addresses:
|
||||||
gap += 1
|
gap += 1
|
||||||
if gap > self.wallet.gap_limit:
|
if gap > self.wallet.gap_limit:
|
||||||
is_red = True
|
is_red = True
|
||||||
else:
|
else:
|
||||||
tx = "%d"%n
|
tx = "%d"%n
|
||||||
if l == self.receive_list:
|
if address in self.wallet.addresses:
|
||||||
gap = 0
|
gap = 0
|
||||||
|
|
||||||
c, u = self.wallet.get_addr_balance(address)
|
c, u = self.wallet.get_addr_balance(address)
|
||||||
|
@ -683,7 +683,7 @@ class ElectrumWindow(QMainWindow):
|
||||||
item.setBackgroundColor(0, QColor('lightgreen'))
|
item.setBackgroundColor(0, QColor('lightgreen'))
|
||||||
|
|
||||||
item.setFont(0, QFont(MONOSPACE_FONT))
|
item.setFont(0, QFont(MONOSPACE_FONT))
|
||||||
if is_red and l==self.receive_list:
|
if is_red and address in self.wallet.addresses:
|
||||||
item.setBackgroundColor(0, QColor('red'))
|
item.setBackgroundColor(0, QColor('red'))
|
||||||
|
|
||||||
l.addTopLevelItem(item)
|
l.addTopLevelItem(item)
|
||||||
|
|
Loading…
Reference in New Issue