Enum nakamoto_p2p::fsm::FilterEvent
source · pub enum FilterEvent {
FilterReceived {
from: PeerId,
filter: BlockFilter,
height: Height,
block_hash: BlockHash,
},
FilterProcessed {
block: BlockHash,
height: Height,
matched: bool,
valid: bool,
cached: bool,
},
FilterHeadersImported {
count: usize,
height: Height,
block_hash: BlockHash,
},
OutOfSync {
filter_height: Height,
block_height: Height,
},
Syncing {
peer: PeerId,
start_height: Height,
stop_height: Height,
stop_hash: BlockHash,
},
RequestCanceled {
reason: &'static str,
},
RescanStarted {
start: Height,
end: Option<Height>,
},
RescanCompleted {
height: Height,
},
Synced(Height),
TimedOut(PeerId),
RollbackDetected(Height),
}
Expand description
An event originating in the CBF manager.
Variants
FilterReceived
Filter was received and validated.
FilterProcessed
Fields
height: Height
The filter height.
matched: bool
Whether or not this filter matched something in the watchlist.
valid: bool
Whether or not this filter was valid.
cached: bool
Filter was cached.
Filter was processed.
FilterHeadersImported
Filter headers were imported successfully.
OutOfSync
Fields
filter_height: Height
Height of filter header chain.
block_height: Height
Height of block header chain.
Filter header chain is out of sync with block headers.
Syncing
Fields
peer: PeerId
The remote peer.
start_height: Height
The start height from which we’re syncing.
stop_height: Height
The stop height to which we’re syncing.
Started syncing filter headers with a peer.
RequestCanceled
Fields
reason: &'static str
Reason for cancellation.
Request canceled.
RescanStarted
A rescan has started.
RescanCompleted
Fields
height: Height
Last height processed by rescan.
An active rescan has completed.
Synced(Height)
Finished syncing filter headers up to the specified height.
TimedOut(PeerId)
A peer has timed out responding to a filter request. TODO: Use event or remove.
RollbackDetected(Height)
Block header chain rollback detected. TODO: Use event or remove.