1
0

swapserver: raise exception if client uses deprecated API

This commit is contained in:
ThomasV
2024-03-01 17:25:37 +01:00
parent 0faadc0469
commit f6312366e6

View File

@@ -146,6 +146,8 @@ class SwapServer(Logger, EventListener):
'timeoutBlockHeight': swap.locktime,
"onchainAmount": swap.onchain_amount,
}
elif req_type == 'submarine':
raise Exception('Deprecated API. Please upgrade your version of Electrum')
else:
raise Exception('unsupported request type:' + req_type)
return web.json_response(response)