-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chain: match on new bitcoind v28.0 errors #948
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re using reject reason instead, we do use that, as we pass it in to this MapRpcErr
function: https://github.com/lightningnetwork/lnd/blob/e8c5e7d5ce4b79117ef9ab497745fea3a1bffb36/lnwallet/btcwallet/btcwallet.go#L1280
I think this works, but like laolu said we already do the mapping over |
I was confused about this too... So I did some digging and we do match on And in that case we then get the new error message, which we need to map as well. |
Yeah we do call publish tx even if there's an error in |
Ahh yeh, we call again just to insert it as a label... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎻
An error message was renamed in bitcoin/bitcoin#30212.
We should probably start matching on the
reject-reason
returned bytestmempoolaccept
RPC instead, as that's less likely to change in the future.