btcsuite / btcwallet

A secure bitcoin wallet daemon written in Go (golang)
ISC License
1.15k stars 590 forks source link

chain+wallet: fix race over `RescanProgress` message #891

Closed yyforyongyu closed 1 year ago

yyforyongyu commented 1 year ago

There's a race found in lnd side re multiple goroutines accessing the RescanProgress, details in this PR.

It also fixes the case where bitcoind is still loading blocks, causing the NewBitcoindConn to return an error.