Skip to content
Snippets Groups Projects
Commit da1be550 authored by vjrj's avatar vjrj
Browse files

Disable Utxo retrieving for now

parent 6cf1b77d
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,6 @@ import 'app_cubit.dart'; ...@@ -10,7 +10,6 @@ import 'app_cubit.dart';
import 'multi_wallet_transaction_cubit.dart'; import 'multi_wallet_transaction_cubit.dart';
import 'node_list_cubit.dart'; import 'node_list_cubit.dart';
import 'transaction.dart'; import 'transaction.dart';
import 'utxo_cubit.dart';
part 'transactions_state.dart'; part 'transactions_state.dart';
...@@ -30,7 +29,6 @@ class TransactionsBloc { ...@@ -30,7 +29,6 @@ class TransactionsBloc {
late AppCubit appCubit; late AppCubit appCubit;
late NodeListCubit nodeListCubit; late NodeListCubit nodeListCubit;
late MultiWalletTransactionCubit transCubit; late MultiWalletTransactionCubit transCubit;
late UtxoCubit utxoCubit;
static const int _pageSize = 20; static const int _pageSize = 20;
...@@ -73,11 +71,10 @@ class TransactionsBloc { ...@@ -73,11 +71,10 @@ class TransactionsBloc {
} }
void init(MultiWalletTransactionCubit transCubit, NodeListCubit nodeListCubit, void init(MultiWalletTransactionCubit transCubit, NodeListCubit nodeListCubit,
AppCubit appCubit, UtxoCubit utxoCubit) { AppCubit appCubit) {
this.appCubit = appCubit; this.appCubit = appCubit;
this.transCubit = transCubit; this.transCubit = transCubit;
this.nodeListCubit = nodeListCubit; this.nodeListCubit = nodeListCubit;
this.utxoCubit = utxoCubit;
} }
Stream<TransactionsState> _fetchTransactionsList(String? pageKey) async* { Stream<TransactionsState> _fetchTransactionsList(String? pageKey) async* {
...@@ -101,8 +98,8 @@ class TransactionsBloc { ...@@ -101,8 +98,8 @@ class TransactionsBloc {
itemList: transCubit.transactions, itemList: transCubit.transactions,
); );
} else { } else {
final List<Transaction> fetchedItems = await transCubit final List<Transaction> fetchedItems =
.fetchTransactions(nodeListCubit, utxoCubit, appCubit, await transCubit.fetchTransactions(nodeListCubit, appCubit,
cursor: pageKey, pageSize: _pageSize); cursor: pageKey, pageSize: _pageSize);
final bool isLastPage = fetchedItems.length < _pageSize; final bool isLastPage = fetchedItems.length < _pageSize;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment