btcsuite / btcwallet

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

wallet: refactor broadcast error code. #878

Closed ziggie1984 closed 1 year ago

ziggie1984 commented 1 year ago

This relates to https://github.com/lightninglabs/neutrino/pull/278 and https://github.com/lightningnetwork/lnd/pull/7746

I will follow @Roasbeef advice reuse the code in the Rebroadcaster Neutrino package. For this we need to refactor the code of the error checking so that we do not depend on the wallet. This lead to the introduction of 2 new error types to separate the logging form the error mapping.

saubyk commented 1 year ago

cc: @yyforyongyu for review