From fb78a671d69c1a6c1c3dd08230b015fdf1a1e1b1 Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 22 Jan 2024 22:21:01 -0800 Subject: [PATCH] Disable accelerate for legacy Airbitz wallets --- CHANGELOG.md | 2 ++ src/common/utxobased/engine/makeUtxoEngine.ts | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa0755e6..df4141cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- removed: Disable `accelerate` for bip32 (Airbitz) wallets + ## 2.5.1 (2023-11-10) - changed: Disabled RBF for Litecoin diff --git a/src/common/utxobased/engine/makeUtxoEngine.ts b/src/common/utxobased/engine/makeUtxoEngine.ts index b09bf3e8..d1de7506 100644 --- a/src/common/utxobased/engine/makeUtxoEngine.ts +++ b/src/common/utxobased/engine/makeUtxoEngine.ts @@ -144,6 +144,9 @@ export async function makeUtxoEngine( const { canReplaceByFee = false } = currencyInfo if (!canReplaceByFee) return null + // Accelerate for legacy Airbitz wallets is not supported + if (privateKeyFormat === 'bip32') return null + // Get the replaced transaction from the processor: const replacedTxid = edgeTx.txid const [replacedTx] = await processor.fetchTransactions({