ui: Use coin tickers as wallet keys in json/wallets

This commit is contained in:
tecnovert
2022-07-25 22:56:14 +02:00
parent 18a444b071
commit cd5af7032f
15 changed files with 58 additions and 40 deletions

View File

@@ -284,7 +284,7 @@ class XmrTestBase(TestBase):
raise ValueError('Test stopped.')
try:
wallets = json.loads(urlopen('http://127.0.0.1:12701/json/wallets').read())
return wallets['6']['main_address']
return wallets['XMR']['main_address']
except Exception as e:
print('Waiting for main address {}'.format(str(e)))
self.delay_event.wait(1)
@@ -309,7 +309,7 @@ class XmrTestBase(TestBase):
raise ValueError('Test stopped.')
try:
wallets = json.loads(urlopen('http://127.0.0.1:12701/json/wallets').read())
particl_blocks = wallets['1']['blocks']
particl_blocks = wallets['PART']['blocks']
print('particl_blocks', particl_blocks)
if particl_blocks >= num_blocks:
break