multi: add experimental endorsement feature bit and disable option

This commit is contained in:
Carla Kirk-Cohen committed 2024-11-22 09:16:58 -05:00
1 parent 4bb5b0c27c
commit f02bb58486
8 files changed
+66 -13

No files matched your search

+4
View File
@@ -760,6 +760,10 @@ func (r *rpcServer) addDeps(s *server, macService *macaroons.Service,
return nil
},
ShouldSetExpEndorsement: func() bool {
if s.cfg.ProtocolOptions.NoExperimentalEndorsement() {
return false
}
return clock.NewDefaultClock().Now().Before(
EndorsementExperimentEnd,
)