ui: Hide all except 'Reseed Wallet' button if expected_seed is false.

This commit is contained in:
tecnovert
2022-10-13 23:16:43 +02:00
parent eb9eb49bd9
commit 6ae8651d1b
3 changed files with 13 additions and 10 deletions

View File

@@ -259,11 +259,7 @@ class BTCInterface(CoinInterface):
def initialiseWallet(self, key_bytes):
key_wif = self.encodeKey(key_bytes)
try:
self.rpc_callback('sethdseed', [True, key_wif])
except Exception as e:
# < 0.21: Cannot set a new HD seed while still in Initial Block Download.
self._log.error('sethdseed failed: {}'.format(str(e)))
self.rpc_callback('sethdseed', [True, key_wif])
def getWalletInfo(self):
return self.rpc_callback('getwalletinfo')