mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 20:09:23 +00:00
firo tweaks
This commit is contained in:
parent
5fa58342e0
commit
becebf37c3
2 changed files with 21 additions and 7 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
import 'dart:async';
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
|
||||||
|
@ -740,20 +741,32 @@ class FiroWallet extends Bip39HDWallet
|
||||||
final sparkAnonymitySet = futureResults[2] as Map<String, dynamic>;
|
final sparkAnonymitySet = futureResults[2] as Map<String, dynamic>;
|
||||||
final sparkSpentCoinTags = futureResults[3] as Set<String>;
|
final sparkSpentCoinTags = futureResults[3] as Set<String>;
|
||||||
|
|
||||||
await Future.wait([
|
if (Util.isDesktop) {
|
||||||
recoverLelantusWallet(
|
await Future.wait([
|
||||||
|
recoverLelantusWallet(
|
||||||
|
latestSetId: latestSetId,
|
||||||
|
usedSerialNumbers: usedSerialsSet,
|
||||||
|
setDataMap: setDataMap,
|
||||||
|
),
|
||||||
|
recoverSparkWallet(
|
||||||
|
anonymitySet: sparkAnonymitySet,
|
||||||
|
spentCoinTags: sparkSpentCoinTags,
|
||||||
|
),
|
||||||
|
]);
|
||||||
|
} else {
|
||||||
|
await recoverLelantusWallet(
|
||||||
latestSetId: latestSetId,
|
latestSetId: latestSetId,
|
||||||
usedSerialNumbers: usedSerialsSet,
|
usedSerialNumbers: usedSerialsSet,
|
||||||
setDataMap: setDataMap,
|
setDataMap: setDataMap,
|
||||||
),
|
);
|
||||||
recoverSparkWallet(
|
await recoverSparkWallet(
|
||||||
anonymitySet: sparkAnonymitySet,
|
anonymitySet: sparkAnonymitySet,
|
||||||
spentCoinTags: sparkSpentCoinTags,
|
spentCoinTags: sparkSpentCoinTags,
|
||||||
),
|
);
|
||||||
]);
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
await refresh();
|
unawaited(refresh());
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
Logging.instance.log(
|
Logging.instance.log(
|
||||||
"Exception rethrown from electrumx_mixin recover(): $e\n$s",
|
"Exception rethrown from electrumx_mixin recover(): $e\n$s",
|
||||||
|
|
|
@ -596,6 +596,7 @@ mixin LelantusInterface on Bip39HDWallet, ElectrumXInterface {
|
||||||
.isLelantusEqualTo(false)
|
.isLelantusEqualTo(false)
|
||||||
.findAll();
|
.findAll();
|
||||||
|
|
||||||
|
// TODO: [prio=high] shouldn't these be v2? If it doesn't matter than we can get rid of this logic
|
||||||
// Edit the receive transactions with the mint fees.
|
// Edit the receive transactions with the mint fees.
|
||||||
List<Transaction> editedTransactions = [];
|
List<Transaction> editedTransactions = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue