Fix electrum unspent coins error (#1912)

* Refresh unspent coins before creating a transaction

* disable seed verification in debug mode [skip ci]
This commit is contained in:
Omar Hatem
2024-12-29 23:48:53 +02:00
committed by GitHub
parent 4cdee649d1
commit 214fc7113c
4 changed files with 13 additions and 5 deletions
+5 -2
View File
@@ -29,6 +29,7 @@ abstract class WalletSeedViewModelBase with Store {
List<String> get seedSplit => seed.split(RegExp(r'\s+'));
int get columnCount => seedSplit.length <= 16 ? 2 : 3;
double get columnAspectRatio => seedSplit.length <= 16 ? 1.8 : 2.8;
/// The indices of the seed to be verified.
@@ -60,8 +61,10 @@ abstract class WalletSeedViewModelBase with Store {
bool isVerificationComplete = false;
void setupSeedVerification() {
generateRandomIndices();
generateOptions();
if (verificationWordCount != 0) {
generateRandomIndices();
generateOptions();
}
}
/// Generate the indices of the seeds to be verified.