engine_v1_tests

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const GAP = int(450)

Variables

This section is empty.

Functions

func CreateBlock

func CreateBlock(blockchain *BlockChain, chainConfig *params.ChainConfig, startingBlock *types.Block, blockNumber int, roundNumber int64, blockCoinBase string, signer common.Address, signFn func(account accounts.Account, hash []byte) ([]byte, error), penalties []byte) *types.Block

func GetCandidateFromCurrentSmartContract

func GetCandidateFromCurrentSmartContract(backend bind.ContractBackend, t *testing.T) masterNodes

func GetSnapshotSigner

func GetSnapshotSigner(bc *BlockChain, header *types.Header) (signersList, error)

func PrepareXDCTestBlockChain

func PrepareXDCTestBlockChain(t *testing.T, numOfBlocks int, chainConfig *params.ChainConfig) (*BlockChain, *backends.SimulatedBackend, *types.Block, common.Address, func(account accounts.Account, hash []byte) ([]byte, error))

V1 consensus engine

func RandStringBytes

func RandStringBytes(n int) string

func UpdateSigner

func UpdateSigner(bc *BlockChain) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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