Documentation
¶
Index ¶
- func ParsePublicKeysFromStrings(pubKeys []string) ([]keys.PublicKey, error)
- type ContractProcessor
- type Server
- func (s *Server) EpochCounter() uint64
- func (s *Server) Index() int32
- func (s *Server) InitAndVoteForSidechainValidator(validators []keys.PublicKey) error
- func (s *Server) IsActive() bool
- func (s *Server) SetEpochCounter(val uint64)
- func (s *Server) Start(ctx context.Context, intError chan<- error) error
- func (s *Server) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContractProcessor ¶
type ContractProcessor interface { ListenerParsers() []event.ParserInfo ListenerHandlers() []event.HandlerInfo TimersHandlers() []event.HandlerInfo }
ContractProcessor interface defines functions for binding event producers such as event.Listener and Timers with contract processor.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the inner ring application structure, that contains all event processors, shared variables and event handlers.
func (*Server) EpochCounter ¶
EpochCounter is a getter for a global epoch counter.
func (*Server) Index ¶ added in v0.12.0
Index is a getter for a global index of node in inner ring list. Negative index means that node is not in the inner ring list.
func (*Server) InitAndVoteForSidechainValidator ¶ added in v0.13.0
InitAndVoteForSidechainValidator is a public function to use outside of inner ring daemon execution. It initialize inner ring structure with data from blockchain and then calls vote method on corresponding alphabet contract.
func (*Server) SetEpochCounter ¶
SetEpochCounter is a setter for contract processors to update global epoch counter.