turbohare

package
v0.1.45 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 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(ctx context.Context, blocks blockProvider) *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