eth1

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const SLOTS_PER_ETH1_VOTING_PERIOD = Slot(EPOCHS_PER_ETH1_VOTING_PERIOD) * SLOTS_PER_EPOCH

Variables

This section is empty.

Functions

This section is empty.

Types

type Eth1Data

type Eth1Data struct {
	DepositRoot  Root // Hash-tree-root of DepositData tree.
	DepositCount DepositIndex
	BlockHash    Root
}

type Eth1DataVotes

type Eth1DataVotes []Eth1Data

func (*Eth1DataVotes) Limit

func (_ *Eth1DataVotes) Limit() uint64

type Eth1State

type Eth1State struct {
	Eth1Data      Eth1Data
	Eth1DataVotes Eth1DataVotes
	DepositIndex  DepositIndex
}

Ethereum 1.0 chain data

func (*Eth1State) DepCount

func (state *Eth1State) DepCount() DepositIndex

func (*Eth1State) DepIndex

func (state *Eth1State) DepIndex() DepositIndex

func (*Eth1State) DepRoot

func (state *Eth1State) DepRoot() Root

func (*Eth1State) IncrementDepositIndex

func (state *Eth1State) IncrementDepositIndex()

func (*Eth1State) ProcessEth1Vote

func (state *Eth1State) ProcessEth1Vote(data Eth1Data) error

func (*Eth1State) ResetEth1Votes

func (state *Eth1State) ResetEth1Votes()

Done at the end of every voting period

type Eth1VoteProcessor

type Eth1VoteProcessor interface {
	ProcessEth1Vote(data Eth1Data) error
}

Jump to

Keyboard shortcuts

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