Skip to content

Commit

Permalink
client/asset/btc: check for nil txHistoryDB before write operation (#…
Browse files Browse the repository at this point in the history
…2807)

Signed-off-by: Philemon Ukane <[email protected]>
  • Loading branch information
ukane-philemon authored Jun 15, 2024
1 parent 00bc854 commit 939685b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/asset/btc/btc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 939685b

Please sign in to comment.