Module blockwatcher

Source
Expand description

Block watcher service implementation.

This module provides functionality to watch and process blockchain blocks across different networks. It includes:

  • Block watching service for multiple networks
  • Block storage implementations
  • Error handling specific to block watching operations
  • Missed block recovery functionality

Structs§

BlockTracker
BlockTracker is responsible for monitoring the sequence of processed blocks across different networks and identifying any gaps or irregularities in block processing.
BlockWatcherService
Service for managing multiple network watchers
FileBlockStorage
File-based implementation of block storage
MissedBlockEntry
Entry tracking a missed block with recovery metadata
NetworkBlockWatcher
Watcher implementation for a single network
RecoveryResult
Result of a recovery job execution

Enums§

BlockCheckResult
Result of checking a processed block for issues
BlockWatcherError
Represents possible errors that can occur during block watching operations
MissedBlockStatus
Status of a missed block entry

Traits§

BlockStorage
Interface for block storage implementations
BlockTrackerTrait
Trait for the BlockTracker
JobSchedulerTrait
Trait for job scheduler

Functions§

process_missed_blocks
Processes missed blocks for recovery
process_new_blocks
Processes new blocks for a network