You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/models/isar/models/blockchain_data/v2/transaction_v2.dart
+4-36Lines changed: 4 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -271,40 +271,6 @@ class TransactionV2 {
271
271
return"Restored Funds";
272
272
}
273
273
274
-
if (isCancelled) {
275
-
return"Cancelled";
276
-
} elseif (type ==TransactionType.incoming) {
277
-
if (isConfirmed(currentChainHeight, minConfirms, minCoinbaseConfirms)) {
278
-
return"Received";
279
-
} else {
280
-
if (numberOfMessages ==1) {
281
-
return"Receiving (waiting for sender)";
282
-
} elseif ((numberOfMessages ??0) >1) {
283
-
return"Receiving (waiting for confirmations)"; // TODO test if the sender still has to open again after the receiver has 2 messages present, ie. sender->receiver->sender->node (yes) vs. sender->receiver->node (no)
284
-
} else {
285
-
return"Receiving ${prettyConfirms()}";
286
-
}
287
-
}
288
-
} elseif (type ==TransactionType.outgoing) {
289
-
if (isConfirmed(currentChainHeight, minConfirms, minCoinbaseConfirms)) {
290
-
return"Sent (confirmed)";
291
-
} else {
292
-
if (numberOfMessages ==1) {
293
-
return"Sending (waiting for receiver)";
294
-
} elseif ((numberOfMessages ??0) >1) {
295
-
return"Sending (waiting for confirmations)";
296
-
} else {
297
-
return"Sending ${prettyConfirms()}";
298
-
}
299
-
}
300
-
}
301
-
}
302
-
303
-
if (isMimblewimblecoinTransaction) {
304
-
if (slateId ==null) {
305
-
return"Restored Funds";
306
-
}
307
-
308
274
if (isCancelled) {
309
275
return"Cancelled";
310
276
} elseif (type ==TransactionType.incoming) {
@@ -347,7 +313,8 @@ class TransactionV2 {
347
313
if (isConfirmed(currentChainHeight, minConfirms, minCoinbaseConfirms)) {
348
314
return"Received";
349
315
} else {
350
-
if (numberOfMessages ==1) {
316
+
if ((onChainNote ==null&& numberOfMessages ==1) |
317
+
(onChainNote !=null&& numberOfMessages ==2)) {
351
318
return"Receiving (waiting for sender)";
352
319
} elseif ((numberOfMessages ??0) >1) {
353
320
return"Receiving (waiting for confirmations)"; // TODO test if the sender still has to open again after the receiver has 2 messages present, ie. sender->receiver->sender->node (yes) vs. sender->receiver->node (no)
@@ -359,7 +326,8 @@ class TransactionV2 {
359
326
if (isConfirmed(currentChainHeight, minConfirms, minCoinbaseConfirms)) {
0 commit comments