utils

package
v0.0.0-...-1a61a4d Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareBlocks

func CompareBlocks(ctx context.Context, silent bool, blockA, blockB *types.Block, rpcClientA, rpcClientB *ethclient.Client) bool

CompareBlocks compares two blocks and returns true if they match

func GetBlocks

func GetBlocks(ctx context.Context, clientA, clientB *ethclient.Client, blockNum uint64) (*types.Block, *types.Block, error)

func GetReceipt

func GetReceipt(ctx context.Context, clientA, clientB *ethclient.Client, txHash common.Hash) (*types.Receipt, *types.Receipt, error)

Types

type RpcConfig

type RpcConfig struct {
	Url1  string `yaml:"url1"`
	Url2  string `yaml:"url2"`
	Block int64  `yaml:"block"`
}

func GetConf

func GetConf() (RpcConfig, error)

Jump to

Keyboard shortcuts

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