Skip to content

Commit 0b7074c

Browse files
committed
mulit: use min relay fee error
1 parent e120e44 commit 0b7074c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

config_builder.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,8 +1763,11 @@ func broadcastErrorMapper(err error) error {
17631763
// in the first place are rebroadcasted despite of their backend error.
17641764
// Mempool conditions change over time so it makes sense to retry
17651765
// publishing the transaction. Moreover we log the detailed error so the
1766-
// user can intervene and increase the size of his mempool.
1767-
case errors.Is(err, chain.ErrMempoolMinFeeNotMet):
1766+
// user can intervene and increase the size of his mempool or increase
1767+
// his min relay fee configuration.
1768+
case errors.Is(err, chain.ErrMempoolMinFeeNotMet),
1769+
errors.Is(err, chain.ErrMinRelayFeeNotMet):
1770+
17681771
ltndLog.Warnf("Error while broadcasting transaction: %v", err)
17691772

17701773
returnErr = &pushtx.BroadcastError{

lnwallet/btcwallet/btcwallet.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,9 @@ func mapRpcclientError(err error) error {
11331133
// If the wallet reports that fee requirements for accepting the tx
11341134
// into mempool are not met, convert it to our internal ErrMempoolFee
11351135
// and return.
1136-
case errors.Is(err, chain.ErrMempoolMinFeeNotMet):
1136+
case errors.Is(err, chain.ErrMempoolMinFeeNotMet),
1137+
errors.Is(err, chain.ErrMinRelayFeeNotMet):
1138+
11371139
return fmt.Errorf("%w: %v", lnwallet.ErrMempoolFee, err.Error())
11381140
}
11391141

0 commit comments

Comments
 (0)