api

package
v0.0.0-...-d7dfbf7 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type P2PoolApi

type P2PoolApi struct {
	Host   string
	Client *http.Client
	// contains filtered or unexported fields
}

func NewP2PoolApi

func NewP2PoolApi(host string) *P2PoolApi

func (*P2PoolApi) ByMainHeight

func (p *P2PoolApi) ByMainHeight(height uint64) sidechain.UniquePoolBlockSlice

func (*P2PoolApi) ByMainId

func (p *P2PoolApi) ByMainId(id types.Hash) *sidechain.PoolBlock

func (*P2PoolApi) ByMainIdWithHint

func (p *P2PoolApi) ByMainIdWithHint(id, templateIdHint types.Hash) *sidechain.PoolBlock

func (*P2PoolApi) BySideHeight

func (p *P2PoolApi) BySideHeight(height uint64) sidechain.UniquePoolBlockSlice

func (*P2PoolApi) ByTemplateId

func (p *P2PoolApi) ByTemplateId(id types.Hash) *sidechain.PoolBlock

func (*P2PoolApi) ConnectionCheck

func (*P2PoolApi) Consensus

func (p *P2PoolApi) Consensus() *sidechain.Consensus

func (*P2PoolApi) DifficultyByHeight

func (p *P2PoolApi) DifficultyByHeight(height uint64) types.Difficulty

func (*P2PoolApi) InsertAlternate

func (p *P2PoolApi) InsertAlternate(b *sidechain.PoolBlock)

func (*P2PoolApi) LightByMainHeight

func (p *P2PoolApi) LightByMainHeight(height uint64) sidechain.UniquePoolBlockSlice

func (*P2PoolApi) LightByMainId

func (p *P2PoolApi) LightByMainId(id types.Hash) *sidechain.PoolBlock

func (*P2PoolApi) LightByMainIdWithHint

func (p *P2PoolApi) LightByMainIdWithHint(id, templateIdHint types.Hash) *sidechain.PoolBlock

func (*P2PoolApi) LightBySideHeight

func (p *P2PoolApi) LightBySideHeight(height uint64) sidechain.UniquePoolBlockSlice

func (*P2PoolApi) LightByTemplateId

func (p *P2PoolApi) LightByTemplateId(id types.Hash) sidechain.UniquePoolBlockSlice

func (*P2PoolApi) MainDifficultyByHeight

func (p *P2PoolApi) MainDifficultyByHeight(height uint64) types.Difficulty

func (*P2PoolApi) MainHeaderByHeight

func (p *P2PoolApi) MainHeaderByHeight(height uint64) *block.Header

func (*P2PoolApi) MainHeaderById

func (p *P2PoolApi) MainHeaderById(id types.Hash) *block.Header

func (*P2PoolApi) MainTip

func (p *P2PoolApi) MainTip() *block.Header

func (*P2PoolApi) MinerData

func (p *P2PoolApi) MinerData() *p2pooltypes.MinerData

func (*P2PoolApi) PeerList

func (p *P2PoolApi) PeerList() []byte

func (*P2PoolApi) SeedByHeight

func (p *P2PoolApi) SeedByHeight(height uint64) types.Hash

func (*P2PoolApi) StateFromTemplateId

func (p *P2PoolApi) StateFromTemplateId(id types.Hash) (chain, uncles sidechain.UniquePoolBlockSlice)

func (*P2PoolApi) StateFromTip

func (p *P2PoolApi) StateFromTip() (chain, uncles sidechain.UniquePoolBlockSlice)

func (*P2PoolApi) Status

func (*P2PoolApi) Tip

func (p *P2PoolApi) Tip() *sidechain.PoolBlock

func (*P2PoolApi) WaitSync

func (p *P2PoolApi) WaitSync() (err error)

func (*P2PoolApi) WaitSyncStart

func (p *P2PoolApi) WaitSyncStart() (err error)

func (*P2PoolApi) WindowFromTemplateId

func (p *P2PoolApi) WindowFromTemplateId(id types.Hash) (chain, uncles sidechain.UniquePoolBlockSlice)

Jump to

Keyboard shortcuts

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