Remember coin on rpc page and check chains are synced to send offers and

bids.
This commit is contained in:
tecnovert
2019-07-31 20:21:41 +02:00
parent 31766508b4
commit 9a0f237019
4 changed files with 37 additions and 4 deletions

View File

@@ -150,6 +150,7 @@ class HttpHandler(BaseHTTPRequestHandler):
swap_client = self.server.swap_client
result = None
coin_type = -1
messages = []
form_data = self.checkForm(post_string, 'rpc', messages)
if form_data:
@@ -160,7 +161,7 @@ class HttpHandler(BaseHTTPRequestHandler):
cmd = form_data[b'cmd'][0].decode('utf-8')
try:
result = swap_client.callcoincli(coin_type, cmd)
result = cmd + '\n' + swap_client.callcoincli(coin_type, cmd)
except Exception as ex:
result = str(ex)
@@ -169,6 +170,7 @@ class HttpHandler(BaseHTTPRequestHandler):
title=self.server.title,
h2=self.server.title,
coins=listAvailableCoins(swap_client),
coin_type=coin_type,
result=result,
form_id=os.urandom(8).hex(),
), 'UTF-8')