validation

package
v1.1.18-beta Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateLogsBloom

func CalculateLogsBloom(logs []common.Log) string

func CalculateTransactionsRoot

func CalculateTransactionsRoot(transactions []common.Transaction) (string, error)

func FindAndRemoveDuplicates

func FindAndRemoveDuplicates(conn clickhouse.Conn, chainId *big.Int, startBlock *big.Int, endBlock *big.Int) error

Types

type Cursor

type Cursor struct {
	LastScannedBlockNumber *big.Int
	MaxBlockNumber         *big.Int
	ChainId                *big.Int
}

func InitCursor

func InitCursor(chainId *big.Int, storage storage.IStorage) (*Cursor, error)

func (*Cursor) Update

func (c *Cursor) Update(blockNumber *big.Int) error

type DuplicateLog

type DuplicateLog struct {
	BlockNumber *big.Int `json:"block_number" ch:"block_number"`
	TxHash      string   `json:"transaction_hash" ch:"transaction_hash"`
	LogIndex    uint64   `json:"log_index" ch:"log_index"`
}

type DuplicateTransaction

type DuplicateTransaction struct {
	BlockNumber *big.Int `json:"block_number" ch:"block_number"`
	Hash        string   `json:"hash" ch:"hash"`
}

Jump to

Keyboard shortcuts

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