config: add channel commit interval parameter

This commit is contained in:
Joost Jager
2021-04-08 14:29:03 +02:00
parent cd87fe89eb
commit a181d26287
4 changed files with 21 additions and 2 deletions

View File

@@ -3137,7 +3137,8 @@ func (s *server) peerConnected(conn net.Conn, connReq *connmgr.ConnReq,
CoopCloseTargetConfs: s.cfg.CoopCloseTargetConfs,
MaxAnchorsCommitFeeRate: chainfee.SatPerKVByte(
s.cfg.MaxCommitFeeRateAnchors * 1000).FeePerKWeight(),
Quit: s.quit,
ChannelCommitInterval: s.cfg.ChannelCommitInterval,
Quit: s.quit,
}
copy(pCfg.PubKeyBytes[:], peerAddr.IdentityKey.SerializeCompressed())