escanner

package
v0.9.15-RC03 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const IncidentTypeAddressBackfill = "address_backfill"

IncidentTypeAddressBackfill marks processed_incidents rows created by a scanner jump.

View Source
const JobKindAddressBackfill = "address_backfill"
View Source
const (
	QueueAddressBackfill = "address_backfill"
)

QueueAddressBackfill is a dedicated river queue: backfill jobs are enqueued in bulk (one per watched address), and running all of them at once overloads eproxy and takes the shared workers from the confirmation-check jobs.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressBackfillArgs

type AddressBackfillArgs struct {
	IncidentID string                    `json:"incident_id"`
	Blockchain wconstants.BlockchainType `json:"blockchain"`
	Address    string                    `json:"address"`
	FromBlock  int64                     `json:"from_block"`
	ToBlock    int64                     `json:"to_block"`
}

AddressBackfillArgs replays the transactions of one watched address over a closed block range [FromBlock, ToBlock] that the scanner skipped (jump).

func (AddressBackfillArgs) InsertOpts

func (a AddressBackfillArgs) InsertOpts() river.InsertOpts

InsertOpts routes backfill jobs to their own queue.

func (AddressBackfillArgs) Kind

func (a AddressBackfillArgs) Kind() string

func (AddressBackfillArgs) Validate

func (a AddressBackfillArgs) Validate() error

type AddressBackfillWorker

type AddressBackfillWorker struct {
	river.WorkerDefaults[AddressBackfillArgs]
	// contains filtered or unexported fields
}

AddressBackfillWorker closes a skipped block range by pulling the watched address transactions from eproxy and pushing them through the shared event pipeline. It never touches the processed_blocks cursor.

func (*AddressBackfillWorker) Queues

Queues implements taskmanager.WorkerWithRiverClient.

func (*AddressBackfillWorker) Register

func (w *AddressBackfillWorker) Register(workers *river.Workers) error

Register implements taskmanager.WorkerWithRiverClient.

func (*AddressBackfillWorker) SetRiverClient

func (w *AddressBackfillWorker) SetRiverClient(client *river.Client[pgx.Tx])

SetRiverClient implements taskmanager.WorkerWithRiverClient.

func (*AddressBackfillWorker) Work

type EScanner

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

EScanner represents a scanner for explorers throw explorer proxy service.

func New

New creates a new instance of EScanner.

func (*EScanner) Name

func (s *EScanner) Name() string

Name

func (*EScanner) Start

func (s *EScanner) Start(ctx context.Context) error

Start

func (*EScanner) Stop

func (s *EScanner) Stop(_ context.Context) error

Stop

Jump to

Keyboard shortcuts

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