walletExists method

  1. @override
Future<bool> walletExists()
override

Whether a wallet is already provisioned at the host data dir (a prior createGenerated completed). Drives the boot fork: no wallet → offer create; a wallet → open it and gate on backup confirmation.

Implementation

@override
Future<bool> walletExists() async {
  walletExistsCount++;
  if (failWalletExists != null) throw failWalletExists!;
  return exists;
}