Documentation ¶
Index ¶
- Constants
- func CreateBlock(blockchain *BlockChain, chainConfig *params.ChainConfig, ...) *types.Block
- func GetCandidateFromCurrentSmartContract(backend bind.ContractBackend, t *testing.T) masterNodes
- func GetSnapshotSigner(bc *BlockChain, header *types.Header) (signersList, error)
- func PrepareXDCTestBlockChain(t *testing.T, numOfBlocks int, chainConfig *params.ChainConfig) (*BlockChain, *backends.SimulatedBackend, *types.Block, common.Address, ...)
- func RandStringBytes(n int) string
- func UpdateSigner(bc *BlockChain) error
Constants ¶
View Source
const GAP = int(450)
Variables ¶
This section is empty.
Functions ¶
func CreateBlock ¶
func GetCandidateFromCurrentSmartContract ¶
func GetCandidateFromCurrentSmartContract(backend bind.ContractBackend, t *testing.T) masterNodes
func GetSnapshotSigner ¶
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 UpdateSigner ¶
func UpdateSigner(bc *BlockChain) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.