turbohare

package
v0.2.11-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: MIT Imports: 5 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(_ context.Context, conf config.Config, mesh meshProvider, ppp proposalProvider, blockGen blockGenerator, 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) 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