mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 02:38:11 +01:00
api: Add wallet lock/unlock commands and getcoinseed.
This commit is contained in:
@@ -33,6 +33,14 @@ class InactiveCoin(Exception):
|
||||
return str(self.coinid)
|
||||
|
||||
|
||||
class LockedCoinError(Exception):
|
||||
def __init__(self, coinid):
|
||||
self.coinid = coinid
|
||||
|
||||
def __str__(self):
|
||||
return 'Coin must be unlocked: ' + str(self.coinid)
|
||||
|
||||
|
||||
def ensure(v, err_string):
|
||||
if not v:
|
||||
raise ValueError(err_string)
|
||||
|
||||
Reference in New Issue
Block a user