Skip to content

Commit 78c6696

Browse files
committed
mulit: use min relay fee error
1 parent ef193f8 commit 78c6696

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
@@ -1132,7 +1132,9 @@ func mapRpcclientError(err error) error {
11321132
// If the wallet reports that fee requirements for accepting the tx
11331133
// into mempool are not met, convert it to our internal ErrMempoolFee
11341134
// and return.
1135-
case errors.Is(err, chain.ErrMempoolMinFeeNotMet):
1135+
case errors.Is(err, chain.ErrMempoolMinFeeNotMet),
1136+
errors.Is(err, chain.ErrMinRelayFeeNotMet):
1137+
11361138
return fmt.Errorf("%w: %v", lnwallet.ErrMempoolFee, err.Error())
11371139
}
11381140

0 commit comments

Comments
 (0)