Documentation ¶
Index ¶
- type ChainSpanner
- func (c *ChainSpanner) CommitSpan(heimdallSpan HeimdallSpan, syscall consensus.SystemCall) error
- func (c *ChainSpanner) GetCurrentSpan(syscall consensus.SystemCall) (*Span, error)
- func (c *ChainSpanner) GetCurrentValidators(blockNumber uint64, signer libcommon.Address, ...) ([]*valset.Validator, error)
- type HeimdallSpan
- type Span
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainSpanner ¶
type ChainSpanner struct {
// contains filtered or unexported fields
}
func NewChainSpanner ¶
func NewChainSpanner(validatorSet abi.ABI, chainConfig *chain.Config) *ChainSpanner
func (*ChainSpanner) CommitSpan ¶
func (c *ChainSpanner) CommitSpan(heimdallSpan HeimdallSpan, syscall consensus.SystemCall) error
func (*ChainSpanner) GetCurrentSpan ¶
func (c *ChainSpanner) GetCurrentSpan(syscall consensus.SystemCall) (*Span, error)
GetCurrentSpan get current span from contract
func (*ChainSpanner) GetCurrentValidators ¶
func (c *ChainSpanner) GetCurrentValidators(blockNumber uint64, signer libcommon.Address, getSpanForBlock func(blockNum uint64) (*HeimdallSpan, error)) ([]*valset.Validator, error)
type HeimdallSpan ¶
type HeimdallSpan struct { Span ValidatorSet valset.ValidatorSet `json:"validator_set" yaml:"validator_set"` SelectedProducers []valset.Validator `json:"selected_producers" yaml:"selected_producers"` ChainID string `json:"bor_chain_id" yaml:"bor_chain_id"` }
HeimdallSpan represents span from heimdall APIs
Click to show internal directories.
Click to hide internal directories.