Documentation ¶
Index ¶
- func GenerateFakeAttestations(s *primitives.State, b *beacon.Blockchain, keys validator.Keystore) ([]primitives.Attestation, error)
- func MineBlockWithFullAttestations(b *beacon.Blockchain, keystore validator.Keystore, proposerIndex uint32) (*primitives.Block, error)
- func MineBlockWithSpecialsAndAttestations(b *beacon.Blockchain, attestations []primitives.Attestation, ...) (*primitives.Block, error)
- func SetBit(bitfield []byte, id uint32) ([]byte, error)
- func SetupBlockchain(initialValidators int, c *config.Config) (*beacon.Blockchain, validator.Keystore, error)
- func SetupBlockchainWithTime(initialValidators int, c *config.Config, genesisTime time.Time) (*beacon.Blockchain, validator.Keystore, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateFakeAttestations ¶
func GenerateFakeAttestations(s *primitives.State, b *beacon.Blockchain, keys validator.Keystore) ([]primitives.Attestation, error)
GenerateFakeAttestations generates a bunch of fake attestations.
func MineBlockWithFullAttestations ¶
func MineBlockWithFullAttestations(b *beacon.Blockchain, keystore validator.Keystore, proposerIndex uint32) (*primitives.Block, error)
MineBlockWithFullAttestations generates attestations to include in a block and mines it.
func MineBlockWithSpecialsAndAttestations ¶
func MineBlockWithSpecialsAndAttestations(b *beacon.Blockchain, attestations []primitives.Attestation, proposerSlashings []primitives.ProposerSlashing, casperSlashings []primitives.CasperSlashing, deposits []primitives.Deposit, exits []primitives.Exit, k validator.Keystore, proposerIndex uint32) (*primitives.Block, error)
MineBlockWithSpecialsAndAttestations mines a block with the given specials and attestations.
func SetupBlockchain ¶
func SetupBlockchain(initialValidators int, c *config.Config) (*beacon.Blockchain, validator.Keystore, error)
SetupBlockchain sets up a blockchain with a certain number of initial validators
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.