Back to

Package turbohare

Latest Go to latest

The highest tagged major version is .

Published: Apr 17, 2020 | License: MIT | Module:


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


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(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() error

Start is a stub to support service API

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier