swapserver: raise exception if client uses deprecated API
This commit is contained in:
@@ -146,6 +146,8 @@ class SwapServer(Logger, EventListener):
|
|||||||
'timeoutBlockHeight': swap.locktime,
|
'timeoutBlockHeight': swap.locktime,
|
||||||
"onchainAmount": swap.onchain_amount,
|
"onchainAmount": swap.onchain_amount,
|
||||||
}
|
}
|
||||||
|
elif req_type == 'submarine':
|
||||||
|
raise Exception('Deprecated API. Please upgrade your version of Electrum')
|
||||||
else:
|
else:
|
||||||
raise Exception('unsupported request type:' + req_type)
|
raise Exception('unsupported request type:' + req_type)
|
||||||
return web.json_response(response)
|
return web.json_response(response)
|
||||||
|
|||||||
Reference in New Issue
Block a user