Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func New ¶
func New(node rpcclient.SignClient) *Provider
func (*Provider) GetByHash ¶
func (p *Provider) GetByHash(hash []byte) (certifiers.Seed, error)
GetHash gets the most recent validator (only one available) and sees if it matches
TODO: improve when the rpc interface supports more functionality
func (*Provider) GetByHeight ¶
func (p *Provider) GetByHeight(h int) (certifiers.Seed, error)
GetByHeight gets the most recent validator (only one available) and sees if it matches
TODO: keep track of most recent height, it will never go down
TODO: improve when the rpc interface supports more functionality
Click to show internal directories.
Click to hide internal directories.