multi: add experimental endorsement feature bit and disable option
This commit is contained in:
8 files changed
+66
-13
No files matched your search
@@ -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,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user