turbohare

package
v0.2.18-beta.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package turbohare is a component returning block ids for layer as seen by this miner, without running any consensus process

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SuperHare

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

SuperHare is a method to provide fast hare results without consensus based on received blocks from gossip.

func New

func New(db *sql.Database, conf config.Config, ch chan hare.LayerOutput, beginLayer chan types.LayerID, logger log.Log) *SuperHare

New creates a new instance of SuperHare.

func (*SuperHare) Close

func (h *SuperHare) Close()

Close is a stup to support service API.

func (*SuperHare) GetHareMsgHandler

func (h *SuperHare) GetHareMsgHandler() pubsub.GossipHandler

GetHareMsgHandler returns the gossip handler for hare protocol message.

func (*SuperHare) Start

func (h *SuperHare) Start(ctx context.Context) error

Start is a stub to support service API.

Jump to

Keyboard shortcuts

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