jetcoordinator

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package jetcoordinator is responsible for all jet manipulations.

Package responsible for jet drops, split/merge jets, choose of validators.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJetDrop

func CreateJetDrop(storage storage.LedgerStorer, prevPulse, newPulse record.PulseNum) (*jetdrop.JetDrop, error)

CreateJetDrop creates new jet drop from records in storage. Previous pulse is required to calculate hash.

Types

type JetCoordinator

type JetCoordinator struct {
	// contains filtered or unexported fields
}

JetCoordinator is responsible for all jet interactions

func (*JetCoordinator) Pulse

func (jc *JetCoordinator) Pulse(newPulse record.PulseNum) error

Pulse creates new jet drop and ends current slot. This should be called when receiving a new pulse from pulsar.

Jump to

Keyboard shortcuts

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