1
0

swapserver: cleanup, add description

This commit is contained in:
ThomasV
2023-07-25 15:28:28 +02:00
parent 69a1242ea8
commit 1b14692f30
3 changed files with 10 additions and 4 deletions

View File

@@ -1,6 +1,15 @@
from electrum.i18n import _
fullname = _('SwapServer')
description = ''
description = """
Submarine swap server for an Electrum daemon.
Example setup:
electrum -o setconfig use_swapserver True
electrum -o setconfig swapserver_address localhost:5455
electrum daemon -v
"""
available_for = ['qt', 'cmdline']

View File

@@ -38,7 +38,6 @@ class SwapServer(Logger, EventListener):
@ignore_exceptions
@log_exceptions
async def run(self):
self.root = '/root'
app = web.Application()
app.add_routes([web.get('/api/getpairs', self.get_pairs)])
app.add_routes([web.post('/api/createswap', self.create_swap)])
@@ -57,7 +56,6 @@ class SwapServer(Logger, EventListener):
"warnings": [],
"pairs": {
"BTC/BTC": {
"hash": "dfe692a026d6964601bfd79703611af333d1d5aa49ef5fedd288f5a620fced60",
"rate": 1,
"limits": {
"maximal": sm._max_amount,