turbohare

package
v0.2.1-beta.4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2021 License: MIT Imports: 7 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, 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) GetResult

func (h *SuperHare) GetResult(id types.LayerID) ([]types.BlockID, error)

GetResult is the implementation for receiving consensus process result

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