Documentation ¶
Index ¶
- type P2PoolApi
- func (p *P2PoolApi) ByMainHeight(height uint64) sidechain.UniquePoolBlockSlice
- func (p *P2PoolApi) ByMainId(id types.Hash) *sidechain.PoolBlock
- func (p *P2PoolApi) ByMainIdWithHint(id, templateIdHint types.Hash) *sidechain.PoolBlock
- func (p *P2PoolApi) BySideHeight(height uint64) sidechain.UniquePoolBlockSlice
- func (p *P2PoolApi) ByTemplateId(id types.Hash) *sidechain.PoolBlock
- func (p *P2PoolApi) ConnectionCheck(addrPort netip.AddrPort) *p2pooltypes.P2PoolConnectionCheckInformation[*sidechain.PoolBlock]
- func (p *P2PoolApi) Consensus() *sidechain.Consensus
- func (p *P2PoolApi) DifficultyByHeight(height uint64) types.Difficulty
- func (p *P2PoolApi) InsertAlternate(b *sidechain.PoolBlock)
- func (p *P2PoolApi) LightByMainHeight(height uint64) sidechain.UniquePoolBlockSlice
- func (p *P2PoolApi) LightByMainId(id types.Hash) *sidechain.PoolBlock
- func (p *P2PoolApi) LightByMainIdWithHint(id, templateIdHint types.Hash) *sidechain.PoolBlock
- func (p *P2PoolApi) LightBySideHeight(height uint64) sidechain.UniquePoolBlockSlice
- func (p *P2PoolApi) LightByTemplateId(id types.Hash) sidechain.UniquePoolBlockSlice
- func (p *P2PoolApi) MainDifficultyByHeight(height uint64) types.Difficulty
- func (p *P2PoolApi) MainHeaderByHeight(height uint64) *block.Header
- func (p *P2PoolApi) MainHeaderById(id types.Hash) *block.Header
- func (p *P2PoolApi) MainTip() *block.Header
- func (p *P2PoolApi) MinerData() *p2pooltypes.MinerData
- func (p *P2PoolApi) PeerList() []byte
- func (p *P2PoolApi) SeedByHeight(height uint64) types.Hash
- func (p *P2PoolApi) StateFromTemplateId(id types.Hash) (chain, uncles sidechain.UniquePoolBlockSlice)
- func (p *P2PoolApi) StateFromTip() (chain, uncles sidechain.UniquePoolBlockSlice)
- func (p *P2PoolApi) Status() *p2pooltypes.P2PoolSideChainStatusResult
- func (p *P2PoolApi) Tip() *sidechain.PoolBlock
- func (p *P2PoolApi) WaitSync() (err error)
- func (p *P2PoolApi) WaitSyncStart() (err error)
- func (p *P2PoolApi) WindowFromTemplateId(id types.Hash) (chain, uncles sidechain.UniquePoolBlockSlice)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type P2PoolApi ¶
func NewP2PoolApi ¶
func (*P2PoolApi) ByMainHeight ¶
func (p *P2PoolApi) ByMainHeight(height uint64) sidechain.UniquePoolBlockSlice
func (*P2PoolApi) ByMainIdWithHint ¶
func (*P2PoolApi) BySideHeight ¶
func (p *P2PoolApi) BySideHeight(height uint64) sidechain.UniquePoolBlockSlice
func (*P2PoolApi) ByTemplateId ¶
func (*P2PoolApi) ConnectionCheck ¶
func (p *P2PoolApi) ConnectionCheck(addrPort netip.AddrPort) *p2pooltypes.P2PoolConnectionCheckInformation[*sidechain.PoolBlock]
func (*P2PoolApi) DifficultyByHeight ¶
func (p *P2PoolApi) DifficultyByHeight(height uint64) types.Difficulty
func (*P2PoolApi) InsertAlternate ¶
func (*P2PoolApi) LightByMainHeight ¶
func (p *P2PoolApi) LightByMainHeight(height uint64) sidechain.UniquePoolBlockSlice
func (*P2PoolApi) LightByMainId ¶
func (*P2PoolApi) LightByMainIdWithHint ¶
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 (*P2PoolApi) MinerData ¶
func (p *P2PoolApi) MinerData() *p2pooltypes.MinerData
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 (p *P2PoolApi) Status() *p2pooltypes.P2PoolSideChainStatusResult
func (*P2PoolApi) WaitSyncStart ¶
func (*P2PoolApi) WindowFromTemplateId ¶
func (p *P2PoolApi) WindowFromTemplateId(id types.Hash) (chain, uncles sidechain.UniquePoolBlockSlice)
Click to show internal directories.
Click to hide internal directories.