cmd_merge

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Loads many source CSV files (produced by the collector), creates summary files in CSV and Parquet, and writes a single CSV file with all raw transactions

Index

Constants

This section is empty.

Variables

View Source
var Command = cli.Command{
	Name:  "merge",
	Usage: "Load input CSV files, deduplicate, sort and produce single output file",
	Subcommands: []*cli.Command{
		{
			Name:    "transactions",
			Aliases: []string{"tx", "t"},
			Usage:   "merge transaction CSVs",
			Flags:   append(commonFlags, mergeTxFlags...),
			Action:  mergeTransactions,
		},
		{
			Name:    "sourcelog",
			Aliases: []string{"s"},
			Usage:   "merge sourcelog CSVs",
			Flags:   commonFlags,
			Action:  mergeSourcelog,
		},
		{
			Name:   "trash",
			Usage:  "merge trash CSVs",
			Flags:  commonFlags,
			Action: mergeTrash,
		},
	},
}

Functions

This section is empty.

Types

type BlockCache

type BlockCache struct {
	// contains filtered or unexported fields
}

BlockCache - reuse already known blocks and avoid unnecessary lookups for transaction inclusion

func NewBlockCache

func NewBlockCache() *BlockCache

type TxUpdateWorker

type TxUpdateWorker struct {
	// contains filtered or unexported fields
}

TxUpdateWorker - independent EL connections for parallel tx inclusion checks

func NewTxUpdateWorker

func NewTxUpdateWorker(log *zap.SugaredLogger, checkNodeURI string, txC chan *common.TxSummaryEntry, respC chan error, blockCache *BlockCache) (p *TxUpdateWorker)

Jump to

Keyboard shortcuts

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