ui: Display watched outputs once per coin.
This commit is contained in:
parent
20c59663c1
commit
fafcfa4731
@ -5073,6 +5073,8 @@ class BasicSwap(BaseApp):
|
|||||||
def getSummary(self, opts=None):
|
def getSummary(self, opts=None):
|
||||||
num_watched_outputs = 0
|
num_watched_outputs = 0
|
||||||
for c, v in self.coin_clients.items():
|
for c, v in self.coin_clients.items():
|
||||||
|
if c in (Coins.PART_ANON, Coins.PART_BLIND):
|
||||||
|
continue
|
||||||
num_watched_outputs += len(v['watched_outputs'])
|
num_watched_outputs += len(v['watched_outputs'])
|
||||||
|
|
||||||
bids_sent = 0
|
bids_sent = 0
|
||||||
@ -5338,6 +5340,8 @@ class BasicSwap(BaseApp):
|
|||||||
rv = []
|
rv = []
|
||||||
rv_heights = []
|
rv_heights = []
|
||||||
for c, v in self.coin_clients.items():
|
for c, v in self.coin_clients.items():
|
||||||
|
if c in (Coins.PART_ANON, Coins.PART_BLIND): # exclude duplicates
|
||||||
|
continue
|
||||||
if self.coin_clients[c]['connection_type'] == 'rpc':
|
if self.coin_clients[c]['connection_type'] == 'rpc':
|
||||||
rv_heights.append((c, v['last_height_checked']))
|
rv_heights.append((c, v['last_height_checked']))
|
||||||
for o in v['watched_outputs']:
|
for o in v['watched_outputs']:
|
||||||
|
Loading…
Reference in New Issue
Block a user