turbohare

package
v0.1.10-docs-prerelease Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: MIT Imports: 4 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(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

Jump to

Keyboard shortcuts

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