Documentation ¶
Index ¶
- Variables
- func IsDoubleVote(a *AttestationData, b *AttestationData) bool
- func IsSlashableAttestationData(a *AttestationData, b *AttestationData) bool
- func IsSurroundVote(a *AttestationData, b *AttestationData) bool
- func ProcessAttestation(state *BeaconState, attestation *Attestation) error
- func ProcessAttesterSlashing(state *BeaconState, attesterSlashing *AttesterSlashing) error
- func ProcessBlockAttestations(state *BeaconState, block *BeaconBlock) error
- func ProcessBlockAttesterSlashings(state *BeaconState, block *BeaconBlock) error
- func ProcessBlockDeposits(state *BeaconState, block *BeaconBlock) error
- func ProcessBlockEth1(state *BeaconState, block *BeaconBlock) error
- func ProcessBlockHeader(state *BeaconState, block *BeaconBlock) error
- func ProcessBlockProposerSlashings(state *BeaconState, block *BeaconBlock) error
- func ProcessBlockRandao(state *BeaconState, block *BeaconBlock) error
- func ProcessBlockTransfers(state *BeaconState, block *BeaconBlock) error
- func ProcessBlockVoluntaryExits(state *BeaconState, block *BeaconBlock) error
- func ProcessDeposit(state *BeaconState, dep *Deposit) error
- func ProcessProposerSlashing(state *BeaconState, ps *ProposerSlashing) error
- func ProcessTransfer(state *BeaconState, transfer *Transfer) error
- func ProcessVoluntaryExit(state *BeaconState, exit *VoluntaryExit) error
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.
Click to show internal directories.
Click to hide internal directories.