From 939685bab6e8bbd82a17c17cd8d7afe857f0ef73 Mon Sep 17 00:00:00 2001 From: Philemon Ukane Date: Sat, 15 Jun 2024 16:18:47 +0100 Subject: [PATCH] client/asset/btc: check for nil txHistoryDB before write operation (#2807) Signed-off-by: Philemon Ukane --- client/asset/btc/btc.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/asset/btc/btc.go b/client/asset/btc/btc.go index 786a44972f..1d134c95ea 100644 --- a/client/asset/btc/btc.go +++ b/client/asset/btc/btc.go @@ -5822,6 +5822,9 @@ func (btc *intermediaryWallet) idUnknownTx(tx *ListTransactionsResult) (*asset.W // from the last point to which it had previously scanned to the current tip. func (btc *intermediaryWallet) addUnknownTransactionsToHistory(tip uint64) { txHistoryDB := btc.txDB() + if txHistoryDB == nil { + return + } const blockQueryBuffer = 3 var blockToQuery uint64