mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-21 06:38:52 +00:00
Merge pull request #422 from cypherstack/fix/firo
Increment Firo mint index by 1
This commit is contained in:
commit
17463c4a4c
1 changed files with 8 additions and 1 deletions
|
@ -2460,7 +2460,14 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive {
|
||||||
|
|
||||||
// Logging.instance.log("$value $tx $ltx");
|
// Logging.instance.log("$value $tx $ltx");
|
||||||
if (!jindexes!.contains(value.index) && tx == null) {
|
if (!jindexes!.contains(value.index) && tx == null) {
|
||||||
|
if (!value.isUsed &&
|
||||||
|
ltx != null &&
|
||||||
|
ltx.isConfirmed(currentChainHeight, MINIMUM_CONFIRMATIONS)) {
|
||||||
|
// mint tx, add value to balance
|
||||||
|
intLelantusBalance += value.value;
|
||||||
|
} /* else {
|
||||||
// This coin is not confirmed and may be replaced
|
// This coin is not confirmed and may be replaced
|
||||||
|
}*/
|
||||||
} else if (jindexes.contains(value.index) &&
|
} else if (jindexes.contains(value.index) &&
|
||||||
tx == null &&
|
tx == null &&
|
||||||
!value.isUsed &&
|
!value.isUsed &&
|
||||||
|
@ -2654,7 +2661,7 @@ class FiroWallet extends CoinServiceAPI with WalletCache, WalletDB, FiroHive {
|
||||||
|
|
||||||
Future<List<Map<String, dynamic>>> createMintsFromAmount(int total) async {
|
Future<List<Map<String, dynamic>>> createMintsFromAmount(int total) async {
|
||||||
var tmpTotal = total;
|
var tmpTotal = total;
|
||||||
var index = 0;
|
var index = 1;
|
||||||
var mints = <Map<String, dynamic>>[];
|
var mints = <Map<String, dynamic>>[];
|
||||||
final nextFreeMintIndex = firoGetMintIndex()!;
|
final nextFreeMintIndex = firoGetMintIndex()!;
|
||||||
while (tmpTotal > 0) {
|
while (tmpTotal > 0) {
|
||||||
|
|
Loading…
Reference in a new issue