mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 02:38:11 +01:00
Display warning when wallet seedid doesn't match expected.
This commit is contained in:
@@ -199,6 +199,9 @@ chainparams = {
|
||||
|
||||
|
||||
class CoinInterface:
|
||||
def __init__(self):
|
||||
self._unknown_wallet_seed = True
|
||||
|
||||
def format_amount(self, amount_int):
|
||||
return format_amount(amount_int, self.exp())
|
||||
|
||||
@@ -207,3 +210,9 @@ class CoinInterface:
|
||||
|
||||
def ticker(self):
|
||||
return chainparams[self.coin_type()]['ticker']
|
||||
|
||||
def setWalletSeedWarning(self, value):
|
||||
self._unknown_wallet_seed = value
|
||||
|
||||
def knownWalletSeed(self):
|
||||
return not self._unknown_wallet_seed
|
||||
|
||||
Reference in New Issue
Block a user