From c29e1f030731b0ed97416fa99c5f3ed9f114a8f4 Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 16 Jan 2024 19:18:01 -0600 Subject: [PATCH] do not put a tempTx for particl due to miss matching txids --- lib/wallets/wallet/impl/particl_wallet.dart | 34 +++++++++++---------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/lib/wallets/wallet/impl/particl_wallet.dart b/lib/wallets/wallet/impl/particl_wallet.dart index 866b54f93..030bce9e9 100644 --- a/lib/wallets/wallet/impl/particl_wallet.dart +++ b/lib/wallets/wallet/impl/particl_wallet.dart @@ -444,22 +444,24 @@ class ParticlWallet extends Bip39HDWallet return txData.copyWith( raw: hexString, vSize: vSize, - tempTx: TransactionV2( - walletId: walletId, - blockHash: null, - hash: builtTx.getId(), - txid: builtTx.getId(), - height: null, - timestamp: DateTime.timestamp().millisecondsSinceEpoch ~/ 1000, - inputs: List.unmodifiable(tempInputs), - outputs: List.unmodifiable(tempOutputs), - version: version, - type: tempOutputs.map((e) => e.walletOwns).fold(true, (p, e) => p &= e) - ? TransactionType.sentToSelf - : TransactionType.outgoing, - subType: TransactionSubType.none, - otherData: null, - ), + tempTx: null, + // builtTx.getId() requires an isParticl flag as well but the lib does not support that yet + // tempTx: TransactionV2( + // walletId: walletId, + // blockHash: null, + // hash: builtTx.getId(), + // txid: builtTx.getId(), + // height: null, + // timestamp: DateTime.timestamp().millisecondsSinceEpoch ~/ 1000, + // inputs: List.unmodifiable(tempInputs), + // outputs: List.unmodifiable(tempOutputs), + // version: version, + // type: tempOutputs.map((e) => e.walletOwns).fold(true, (p, e) => p &= e) + // ? TransactionType.sentToSelf + // : TransactionType.outgoing, + // subType: TransactionSubType.none, + // otherData: null, + // ), ); }