Documentation ¶
Index ¶
- func AddJob(spec string, run RunFunc) *cron.Cron
- type Account
- type RunFunc
- type RunJob
- type StakeService
- func (self *StakeService) GetBlockRecords(blockNumber uint64) (shares []*stake.Share, pools []*stake.StakePool)
- func (self *StakeService) Shares() (shares []*stake.Share)
- func (self *StakeService) SharesById(id common.Hash) *stake.Share
- func (self *StakeService) SharesByPk(pk keys.Uint512) (shares []*stake.Share)
- func (self *StakeService) SharesByPkr(pkr keys.PKr) (shares []*stake.Share)
- func (self *StakeService) StakePools() (pools []*stake.StakePool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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 (*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 keys.Uint512) (shares []*stake.Share)
func (*StakeService) SharesByPkr ¶
func (self *StakeService) SharesByPkr(pkr keys.PKr) (shares []*stake.Share)
func (*StakeService) StakePools ¶
func (self *StakeService) StakePools() (pools []*stake.StakePool)
Click to show internal directories.
Click to hide internal directories.