Skip to content

Commit cbeec9b

Browse files
committed
btcwallet: map error to wallet errors for the mempoolaccept call
1 parent 85a0c14 commit cbeec9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lnwallet/btcwallet/btcwallet.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,6 +1842,10 @@ func (b *BtcWallet) CheckMempoolAcceptance(tx *wire.MsgTx) error {
18421842
if !result.Allowed {
18431843
err := b.chain.MapRPCErr(errors.New(result.RejectReason))
18441844

1845+
// We also need to map the error from the backend to the wallet
1846+
// specific errors.
1847+
err = mapRpcclientError(err)
1848+
18451849
return fmt.Errorf("mempool rejection: %w", err)
18461850
}
18471851

0 commit comments

Comments
 (0)