stakeservice

package
v1.0.1-rc6-dev Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: GPL-3.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddJob

func AddJob(spec string, run RunFunc) *cron.Cron

Types

type Account

type Account struct {
	// contains filtered or unexported fields
}

type RunFunc

type RunFunc func()

type RunJob

type RunJob struct {
	// contains filtered or unexported fields
}

func (*RunJob) Run

func (r *RunJob) Run()

type StakeService

type StakeService struct {
	// contains filtered or unexported fields
}

func CurrentStakeService

func CurrentStakeService() *StakeService

func NewStakeService

func NewStakeService(dbpath string, bc *core.BlockChain, accountManager *accounts.Manager) *StakeService

func (*StakeService) GetBlockRecords

func (self *StakeService) GetBlockRecords(blockNumber uint64) (shares []*stake.Share, pools []*stake.StakePool)

func (*StakeService) Shares

func (self *StakeService) Shares() (shares []*stake.Share)

func (*StakeService) SharesById

func (self *StakeService) SharesById(id common.Hash) *stake.Share

func (*StakeService) SharesByPk

func (self *StakeService) SharesByPk(pk c_type.Uint512) (shares []*stake.Share)

func (*StakeService) SharesByPkr

func (self *StakeService) SharesByPkr(pkr c_type.PKr) (shares []*stake.Share)

func (*StakeService) StakePools

func (self *StakeService) StakePools() (pools []*stake.StakePool)

Jump to

Keyboard shortcuts

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