multi: rename experimental endorsement signal to accountable

Renames the endorsement signal to accountable to
match the latest proposal https://github.com/lightning/blips/pull/67
This commit is contained in:
elnosh committed 2026-01-06 09:12:31 -05:00
1 parent 801de79cf1
commit 34329c684e
21 files changed
+229 -227

No files matched your search

+3 -5
View File
@@ -695,8 +695,6 @@ func newRPCServer(cfg *Config, interceptorChain *rpcperms.InterceptorChain,
// addDeps populates all dependencies needed by the RPC server, and any
// of the sub-servers that it maintains. When this is done, the RPC server can
// be started, and start accepting RPC calls.
//
//nolint:funlen
func (r *rpcServer) addDeps(ctx context.Context, s *server,
macService *macaroons.Service,
subServerCgs *subRPCServerConfigs, atpl *autopilot.Manager,
@@ -781,13 +779,13 @@ func (r *rpcServer) addDeps(ctx context.Context, s *server,
return nil
},
ShouldSetExpEndorsement: func() bool {
if s.cfg.ProtocolOptions.NoExperimentalEndorsement() {
ShouldSetExpAccountability: func() bool {
if s.cfg.ProtocolOptions.NoExpAccountability() {
return false
}
return clock.NewDefaultClock().Now().Before(
EndorsementExperimentEnd,
AccountabilityExperimentEnd,
)
},
}