Skip to content

Commit

Permalink
enforce configured routing policy
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Nov 14, 2024
1 parent bae6621 commit 74f12b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interceptor/intercept_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,10 @@ func (i *Interceptor) openChannel(paymentHash, destination []byte, incomingAmoun
MinConfs: i.config.MinConfs,
FeeSatPerVByte: fee.SatPerVByte,
TargetConf: fee.TargetConf,
RoutingPolicy: &lightning.RoutingPolicy{
Ppm: uint32(i.config.FeeRate * 1_000_000),
BaseMsat: i.config.BaseFeeMsat,
},
})
if err != nil {
log.Printf("paymenthash %x, client.OpenChannelSync(%x, %v) error: %v", paymentHash, destination, capacity, err)
Expand Down

0 comments on commit 74f12b9

Please sign in to comment.