From e10eb90511a8338410c32ee9cd8cf7e34504ec3d Mon Sep 17 00:00:00 2001 From: sneurlax Date: Tue, 11 Jun 2024 11:42:41 -0500 Subject: [PATCH] set and use particl tx version # s --- lib/wallets/crypto_currency/coins/particl.dart | 2 +- lib/wallets/wallet/impl/particl_wallet.dart | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/wallets/crypto_currency/coins/particl.dart b/lib/wallets/crypto_currency/coins/particl.dart index fd1aa946f..dc2f1fe2f 100644 --- a/lib/wallets/crypto_currency/coins/particl.dart +++ b/lib/wallets/crypto_currency/coins/particl.dart @@ -232,7 +232,7 @@ class Particl extends Bip39HDCurrency with ElectrumXCurrencyInterface { } @override - int get transactionVersion => 1; + int get transactionVersion => 160; @override BigInt get defaultFeeRate => BigInt.from(20000); diff --git a/lib/wallets/wallet/impl/particl_wallet.dart b/lib/wallets/wallet/impl/particl_wallet.dart index 0ce72b393..e5123b1a7 100644 --- a/lib/wallets/wallet/impl/particl_wallet.dart +++ b/lib/wallets/wallet/impl/particl_wallet.dart @@ -436,9 +436,7 @@ class ParticlWallet final txb = bitcoindart.TransactionBuilder( network: convertedNetwork, ); - const version = 160; // buildTransaction overridden for Particl to set this. - // TODO: [prio=low] refactor overridden buildTransaction to use eg. cryptocurrency.networkParams.txVersion. - txb.setVersion(version); + txb.setVersion(cryptoCurrency.transactionVersion); // Temp tx data for GUI while waiting for real tx from server. final List tempInputs = [];