From 5d168f94f7ceb25e1822efed623a7a46c63a9841 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Fri, 13 Oct 2023 17:08:29 +0800 Subject: [PATCH] wallet: send `RescanProgress` by value instead of pointer --- wallet/rescan.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wallet/rescan.go b/wallet/rescan.go index 6ead082da8..01bdadc4ee 100644 --- a/wallet/rescan.go +++ b/wallet/rescan.go @@ -17,7 +17,7 @@ import ( // set of wallet addresses. type RescanProgressMsg struct { Addresses []btcutil.Address - Notification *chain.RescanProgress + Notification chain.RescanProgress } // RescanFinishedMsg reports the addresses that were rescanned when a @@ -147,7 +147,7 @@ func (w *Wallet) rescanBatchHandler() { select { case w.rescanProgress <- &RescanProgressMsg{ Addresses: curBatch.addrs, - Notification: n, + Notification: *n, }: case <-quit: for _, errChan := range curBatch.errChans {