lightninglabs / neutrino

Privacy-Preserving Bitcoin Light Client
MIT License
900 stars 183 forks source link

pushtx+rescan: stop rebroadcast on tx confirm #226

Closed ellemouton closed 2 years ago

ellemouton commented 2 years ago

This PR allows rescan to notify the ChainServices broadcaster that a relevant transaction is confirmed.

Fixes #206 using the approach mentioned here

Testing the PR

Fixes https://github.com/lightninglabs/neutrino/issues/206

Roasbeef commented 2 years ago

Also re which "option" this PR took: with the added method those that use the library outside of the lnd+btcwallet interaction can use that method to clean up the main state.

ellemouton commented 2 years ago

added method those that use the library outside of the lnd+btcwallet interaction can use that method to clean up the main state.

Hmmm but the method is not exposed to them if they just have ChainServices. Should I add a method to ChainServices to expose this method on Broadcaster?

ellemouton commented 2 years ago

Will need a PR now to the lnd repo to update the go.mod there

Is it fine to point to the latest commit or shall we push a new tag to neutrino?