mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-09 10:15:22 +00:00
Attemp to update cached receiving address
This commit is contained in:
parent
ab3df052d4
commit
891f2d8702
1 changed files with 8 additions and 1 deletions
|
@ -332,7 +332,7 @@ class EpiccashWallet extends Bip39Wallet {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// print("NOW THIS ADDRESS IS $address");
|
print("NOW THIS ADDRESS IS $address");
|
||||||
return address;
|
return address;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -363,6 +363,12 @@ class EpiccashWallet extends Bip39Wallet {
|
||||||
);
|
);
|
||||||
|
|
||||||
await mainDB.updateOrPutAddresses([address]);
|
await mainDB.updateOrPutAddresses([address]);
|
||||||
|
if (info.cachedReceivingAddress != address.value) {
|
||||||
|
await info.updateReceivingAddress(
|
||||||
|
newAddress: address.value,
|
||||||
|
isar: mainDB.isar,
|
||||||
|
);
|
||||||
|
}
|
||||||
return address;
|
return address;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -935,6 +941,7 @@ class EpiccashWallet extends Bip39Wallet {
|
||||||
.findAll();
|
.findAll();
|
||||||
final myAddressesSet = myAddresses.toSet();
|
final myAddressesSet = myAddresses.toSet();
|
||||||
|
|
||||||
|
|
||||||
final transactions = await epiccash.LibEpiccash.getTransactions(
|
final transactions = await epiccash.LibEpiccash.getTransactions(
|
||||||
wallet: wallet!,
|
wallet: wallet!,
|
||||||
refreshFromNode: refreshFromNode,
|
refreshFromNode: refreshFromNode,
|
||||||
|
|
Loading…
Reference in a new issue