lightningnetwork/lnd

[bug]: sweep: data race on TxPublisher.currentHeight

morehouse opened this issue · 2 comments

TxPublisher.currentHeight is not guarded by a mutex but is accessed from multiple goroutines:

Thanks for reporting! Also found this issue while fixing the itest flakes and have a local branch already - still needs more work, meanwhile will use atomic to provide a temp fix.