mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-25 19:55:52 +00:00
clean up
This commit is contained in:
parent
68af283033
commit
6ff4c5d49a
1 changed files with 0 additions and 64 deletions
|
@ -3133,17 +3133,6 @@ class FiroWallet extends CoinServiceAPI
|
||||||
txnsData.add(Tuple2(transaction, transactionAddress));
|
txnsData.add(Tuple2(transaction, transactionAddress));
|
||||||
|
|
||||||
await db.addNewTransactionData(txnsData, walletId);
|
await db.addNewTransactionData(txnsData, walletId);
|
||||||
|
|
||||||
// final models.TransactionData newTxData =
|
|
||||||
// models.TransactionData.fromMap(transactions);
|
|
||||||
// await DB.instance.put<dynamic>(
|
|
||||||
// boxName: walletId,
|
|
||||||
// key: 'latest_lelantus_tx_model',
|
|
||||||
// value: newTxData);
|
|
||||||
// final ldata = DB.instance.get<dynamic>(
|
|
||||||
// boxName: walletId,
|
|
||||||
// key: 'latest_lelantus_tx_model') as models.TransactionData;
|
|
||||||
// _lelantusTransactionData = Future(() => ldata);
|
|
||||||
} else {
|
} else {
|
||||||
// This is a mint
|
// This is a mint
|
||||||
Logging.instance.log("this is a mint", level: LogLevel.Info);
|
Logging.instance.log("this is a mint", level: LogLevel.Info);
|
||||||
|
@ -3204,20 +3193,6 @@ class FiroWallet extends CoinServiceAPI
|
||||||
|
|
||||||
Logging.instance.log("fetched fees: $feeObject", level: LogLevel.Info);
|
Logging.instance.log("fetched fees: $feeObject", level: LogLevel.Info);
|
||||||
return feeObject;
|
return feeObject;
|
||||||
|
|
||||||
// final result = await electrumXClient.getFeeRate();
|
|
||||||
//
|
|
||||||
// final locale = await Devicelocale.currentLocale;
|
|
||||||
// final String fee =
|
|
||||||
// Format.satoshiAmountToPrettyString(result["rate"] as int, locale!);
|
|
||||||
//
|
|
||||||
// final fees = {
|
|
||||||
// "fast": fee,
|
|
||||||
// "average": fee,
|
|
||||||
// "slow": fee,
|
|
||||||
// };
|
|
||||||
// final FeeObject feeObject = FeeObject.fromJson(fees);
|
|
||||||
// return feeObject;
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Logging.instance
|
Logging.instance
|
||||||
.log("Exception rethrown from _getFees(): $e", level: LogLevel.Error);
|
.log("Exception rethrown from _getFees(): $e", level: LogLevel.Error);
|
||||||
|
@ -4072,45 +4047,6 @@ class FiroWallet extends CoinServiceAPI
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// /// Takes in a list of isar_models.UTXOs and adds a name (dependent on object index within list)
|
|
||||||
// /// and checks for the txid associated with the utxo being blocked and marks it accordingly.
|
|
||||||
// /// Now also checks for output labeling.
|
|
||||||
// Future<void> _sortOutputs(List<isar_models.UTXO> utxos) async {
|
|
||||||
// final blockedHashArray =
|
|
||||||
// DB.instance.get<dynamic>(boxName: walletId, key: 'blocked_tx_hashes')
|
|
||||||
// as List<dynamic>?;
|
|
||||||
// final List<String> lst = [];
|
|
||||||
// if (blockedHashArray != null) {
|
|
||||||
// for (var hash in blockedHashArray) {
|
|
||||||
// lst.add(hash as String);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// final labels =
|
|
||||||
// DB.instance.get<dynamic>(boxName: walletId, key: 'labels') as Map? ??
|
|
||||||
// {};
|
|
||||||
//
|
|
||||||
// _outputsList = [];
|
|
||||||
//
|
|
||||||
// for (var i = 0; i < utxos.length; i++) {
|
|
||||||
// if (labels[utxos[i].txid] != null) {
|
|
||||||
// utxos[i].txName = labels[utxos[i].txid] as String? ?? "";
|
|
||||||
// } else {
|
|
||||||
// utxos[i].txName = 'Output #$i';
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// if (utxos[i].status.confirmed == false) {
|
|
||||||
// _outputsList.add(utxos[i]);
|
|
||||||
// } else {
|
|
||||||
// if (lst.contains(utxos[i].txid)) {
|
|
||||||
// utxos[i].blocked = true;
|
|
||||||
// _outputsList.add(utxos[i]);
|
|
||||||
// } else if (!lst.contains(utxos[i].txid)) {
|
|
||||||
// _outputsList.add(utxos[i]);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> fullRescan(
|
Future<void> fullRescan(
|
||||||
int maxUnusedAddressGap,
|
int maxUnusedAddressGap,
|
||||||
|
|
Loading…
Reference in a new issue