block_processing

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RandaoEpochSSZ = zssz.GetSSZ((*Epoch)(nil))

Functions

func IsDoubleVote

func IsDoubleVote(a *AttestationData, b *AttestationData) bool

Check if a and b have the same target epoch.

func IsSlashableAttestationData

func IsSlashableAttestationData(a *AttestationData, b *AttestationData) bool

func IsSurroundVote

func IsSurroundVote(a *AttestationData, b *AttestationData) bool

Check if a surrounds b, i.E. source(a) < source(b) and target(a) > target(b)

func ProcessAttestation

func ProcessAttestation(state *BeaconState, attestation *Attestation) error

func ProcessAttesterSlashing

func ProcessAttesterSlashing(state *BeaconState, attesterSlashing *AttesterSlashing) error

func ProcessBlockAttestations

func ProcessBlockAttestations(state *BeaconState, block *BeaconBlock) error

func ProcessBlockAttesterSlashings

func ProcessBlockAttesterSlashings(state *BeaconState, block *BeaconBlock) error

func ProcessBlockDeposits

func ProcessBlockDeposits(state *BeaconState, block *BeaconBlock) error

func ProcessBlockEth1

func ProcessBlockEth1(state *BeaconState, block *BeaconBlock) error

func ProcessBlockHeader

func ProcessBlockHeader(state *BeaconState, block *BeaconBlock) error

func ProcessBlockProposerSlashings

func ProcessBlockProposerSlashings(state *BeaconState, block *BeaconBlock) error

func ProcessBlockRandao

func ProcessBlockRandao(state *BeaconState, block *BeaconBlock) error

func ProcessBlockTransfers

func ProcessBlockTransfers(state *BeaconState, block *BeaconBlock) error

func ProcessBlockVoluntaryExits

func ProcessBlockVoluntaryExits(state *BeaconState, block *BeaconBlock) error

func ProcessDeposit

func ProcessDeposit(state *BeaconState, dep *Deposit) error

Process an Eth1 deposit, registering a validator or increasing its balance.

func ProcessProposerSlashing

func ProcessProposerSlashing(state *BeaconState, ps *ProposerSlashing) error

func ProcessTransfer

func ProcessTransfer(state *BeaconState, transfer *Transfer) error

func ProcessVoluntaryExit

func ProcessVoluntaryExit(state *BeaconState, exit *VoluntaryExit) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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