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

Add some logs in tx ids

parent b54b93ba
No related branches found
No related tags found
No related merge requests found
...@@ -123,9 +123,18 @@ class MultiWalletTransactionCubit ...@@ -123,9 +123,18 @@ class MultiWalletTransactionCubit
DateTime get lastChecked => currentWalletState().lastChecked; DateTime get lastChecked => currentWalletState().lastChecked;
String _getTxKey(Transaction t) => t.isToMultiple String _getTxKey(Transaction t) {
? '${t.recipients.map((Contact c) => c.pubKey).join('-')}-${t.comment}-${t.amount}' final String id = t.isToMultiple
: '${t.to.pubKey}-${t.comment}-${t.amount}'; ? '${t.recipients.map((Contact c) => extractPublicKey(c.pubKey)).join('-')}-${t.comment}-${t.amount}'
: '${extractPublicKey(t.to.pubKey)}-${t.comment}-${t.amount}';
/* if (t.type == TransactionType.pending ||
t.type == TransactionType.sending) {
loggerDev(t.toJson().toString());
}
loggerDev(
'###################### >>>> Key for tx ${t.toStringSmall(_defKey(null))}: $id'); */
return id;
}
Future<List<Transaction>> fetchTransactions( Future<List<Transaction>> fetchTransactions(
NodeListCubit cubit, UtxoCubit utxoCubit, AppCubit appCubit, NodeListCubit cubit, UtxoCubit utxoCubit, AppCubit appCubit,
......
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