client

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2017 License: Apache-2.0 Imports: 6 Imported by: 1

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 NewHTTP

func NewHTTP(remote string) *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

func (*Provider) StoreSeed

func (p *Provider) StoreSeed(_ certifiers.Seed) error

StoreSeed is a noop, as clients can only read from the chain...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL