multi: add new config usestatusinitiated for the new payment status

This commit adds a new config value to signal that the user understands
the new payment status `StatusInitiated`.
This commit is contained in:
yyforyongyu
2023-11-14 20:29:52 +08:00
parent c58454effe
commit 816a70e08c
5 changed files with 44 additions and 4 deletions

View File

@ -715,7 +715,8 @@ func (r *rpcServer) addDeps(s *server, macService *macaroons.Service,
SetChannelDisabled: func(outpoint wire.OutPoint) error {
return s.chanStatusMgr.RequestDisable(outpoint, true)
},
SetChannelAuto: s.chanStatusMgr.RequestAuto,
SetChannelAuto: s.chanStatusMgr.RequestAuto,
UseStatusInitiated: subServerCgs.RouterRPC.UseStatusInitiated,
}
genInvoiceFeatures := func() *lnwire.FeatureVector {