forked from TrueCloudLab/frostfs-node
Add Inner Ring code
This commit is contained in:
parent
dadfd90dcd
commit
b7b5079934
400 changed files with 11420 additions and 8690 deletions
17
pkg/innerring/state.go
Normal file
17
pkg/innerring/state.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package innerring
|
||||
|
||||
// EpochCounter is a getter for a global epoch counter.
|
||||
func (s *Server) EpochCounter() uint64 {
|
||||
return s.epochCounter.Load()
|
||||
}
|
||||
|
||||
// SetEpochCounter is a setter for contract processors to update global
|
||||
// epoch counter.
|
||||
func (s *Server) SetEpochCounter(val uint64) {
|
||||
s.epochCounter.Store(val)
|
||||
}
|
||||
|
||||
// IsActive is a getter for a global active flag state.
|
||||
func (s *Server) IsActive() bool {
|
||||
return s.activeState.Load()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue