mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 02:38:11 +01:00
Remember coin on rpc page and check chains are synced to send offers and
bids.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user