Skip to content

Commit c7ce06c

Browse files
committed
lnd: round up channal opening fee rate
1 parent f93951a commit c7ce06c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lnd/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"encoding/hex"
77
"fmt"
88
"log"
9+
"math"
910
"sync"
1011
"time"
1112

@@ -274,7 +275,7 @@ func (c *LndClient) OpenChannel(req *lightning.OpenChannelRequest) (*wire.OutPoi
274275
}
275276

276277
if req.FeeSatPerVByte != nil {
277-
lnReq.SatPerVbyte = uint64(*req.FeeSatPerVByte)
278+
lnReq.SatPerVbyte = uint64(math.Ceil(*req.FeeSatPerVByte))
278279
} else if req.TargetConf != nil {
279280
lnReq.TargetConf = int32(*req.TargetConf)
280281
}

0 commit comments

Comments
 (0)