pub enum EventType {
Show 120 variants
NewBlock,
NewTransaction,
BlockDisconnected,
ChainReorg,
ReservedPaymentRequestCreated,
ReservedPaymentSettled,
ReservedPaymentFailed,
ReservedPaymentVerified,
ReservedPaymentRouteFound,
ReservedPaymentRouteFailed,
ReservedChannelOpened,
ReservedChannelClosed,
BlockMined,
BlockTemplateUpdated,
MiningDifficultyChanged,
ReservedMiningJobCreated,
MeshPacketReceived,
StratumV2MessageReceived,
ReservedShareSubmitted,
ReservedMergeMiningReward,
ReservedMiningPoolConnected,
ReservedMiningPoolDisconnected,
ReservedGovernanceProposalCreated,
ReservedGovernanceProposalVoted,
ReservedGovernanceProposalMerged,
ReservedWebhookSent,
ReservedWebhookFailed,
ReservedGovernanceForkDetected,
PeerConnected,
PeerDisconnected,
PeerBanned,
PeerUnbanned,
MessageReceived,
MessageSent,
ReservedBroadcastStarted,
ReservedBroadcastCompleted,
ReservedRouteDiscovered,
ReservedRouteFailed,
ReservedConnectionAttempt,
ReservedAddressDiscovered,
ReservedAddressExpired,
ReservedNetworkPartition,
ReservedNetworkReconnected,
ReservedDoSAttackDetected,
ReservedRateLimitExceeded,
BlockValidationStarted,
BlockValidationCompleted,
ReservedScriptVerificationStarted,
ReservedScriptVerificationCompleted,
ReservedUTXOValidationStarted,
ReservedUTXOValidationCompleted,
DifficultyAdjusted,
ReservedSoftForkActivated,
ReservedSoftForkLockedIn,
ReservedConsensusRuleViolation,
HeadersSyncStarted,
HeadersSyncProgress,
HeadersSyncCompleted,
BlockSyncStarted,
BlockSyncProgress,
BlockSyncCompleted,
SyncStateChanged,
MempoolTransactionAdded,
MempoolTransactionRemoved,
MempoolThresholdExceeded,
FeeRateChanged,
MempoolCleared,
ReservedStorageRead,
ReservedStorageWrite,
ReservedStorageQuery,
ReservedDatabaseBackupStarted,
ReservedDatabaseBackupCompleted,
ModuleLoaded,
ModuleUnloaded,
ModuleReloaded,
ReservedModuleStarted,
ReservedModuleStopped,
ModuleCrashed,
ModuleHealthChanged,
ModuleStateChanged,
ConfigLoaded,
NodeShutdown,
NodeShutdownCompleted,
NodeStartupCompleted,
ReservedMaintenanceStarted,
ReservedMaintenanceCompleted,
DataMaintenance,
HealthCheck,
DiskSpaceLow,
ReservedResourceLimitWarning,
ReservedDandelionStemStarted,
ReservedDandelionStemAdvanced,
ReservedDandelionFluffed,
ReservedDandelionStemPathExpired,
ReservedCompactBlockReceived,
ReservedBlockReconstructionStarted,
ReservedBlockReconstructionCompleted,
ReservedFibreBlockEncoded,
ReservedFibreBlockSent,
CompanionUdpPeerRegistered,
CompanionUdpPeerUnregistered,
ReservedPackageReceived,
ReservedPackageRejected,
ReservedUtxoCommitmentReceived,
ReservedUtxoCommitmentVerified,
BanListShared,
BanListReceived,
ReservedSelectiveSyncPolicyApplied,
ReservedActionExecuted,
ReservedModulePurchaseCompleted,
ReservedStratumClientConnected,
ReservedStratumClientDisconnected,
ReservedIBDBlockFiltered,
ModuleDiscovered,
ModuleInstalled,
ModuleUpdated,
ModuleRemoved,
PeerPayment,
ModuleEvent,
FeeTableReady,
}Expand description
Event types that modules can subscribe to
Variants§
NewBlock
New block connected to chain
NewTransaction
New transaction in mempool
BlockDisconnected
Block disconnected (chain reorg)
ChainReorg
Chain reorganization occurred
ReservedPaymentRequestCreated
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedPaymentSettled
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedPaymentFailed
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedPaymentVerified
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedPaymentRouteFound
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedPaymentRouteFailed
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedChannelOpened
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedChannelClosed
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
BlockMined
Block mined successfully
BlockTemplateUpdated
Block template updated
MiningDifficultyChanged
Mining difficulty changed
ReservedMiningJobCreated
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
MeshPacketReceived
Mesh packet received from network
StratumV2MessageReceived
Stratum V2 message received from network
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedMergeMiningReward
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedMiningPoolConnected
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedMiningPoolDisconnected
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedGovernanceProposalCreated
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedGovernanceProposalVoted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedGovernanceProposalMerged
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedWebhookSent
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedWebhookFailed
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedGovernanceForkDetected
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
PeerConnected
Peer connected
PeerDisconnected
Peer disconnected
PeerBanned
Peer banned
PeerUnbanned
Peer unbanned
MessageReceived
Network message received
MessageSent
Network message sent
ReservedBroadcastStarted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedBroadcastCompleted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedRouteDiscovered
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedRouteFailed
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedConnectionAttempt
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedAddressDiscovered
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedAddressExpired
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedNetworkPartition
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedNetworkReconnected
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedDoSAttackDetected
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedRateLimitExceeded
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
BlockValidationStarted
Block validation started
BlockValidationCompleted
Block validation completed (success/failure)
ReservedScriptVerificationStarted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedScriptVerificationCompleted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedUTXOValidationStarted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedUTXOValidationCompleted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
DifficultyAdjusted
Network difficulty adjusted
ReservedSoftForkActivated
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedSoftForkLockedIn
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedConsensusRuleViolation
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
HeadersSyncStarted
Headers sync started
HeadersSyncProgress
Headers sync progress update
HeadersSyncCompleted
Headers sync completed
BlockSyncStarted
Block sync started (IBD)
BlockSyncProgress
Block sync progress update
BlockSyncCompleted
Block sync completed
SyncStateChanged
Sync state changed (Initial → Headers → Blocks → Synced)
MempoolTransactionAdded
Transaction added to mempool
MempoolTransactionRemoved
Transaction removed from mempool
MempoolThresholdExceeded
Mempool size threshold exceeded
FeeRateChanged
Fee rate changed (derived from mempool)
MempoolCleared
Mempool cleared
ReservedStorageRead
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedStorageWrite
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedStorageQuery
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedDatabaseBackupStarted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedDatabaseBackupCompleted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ModuleLoaded
Module loaded successfully
ModuleUnloaded
Module unloaded
ModuleReloaded
Module reloaded
ReservedModuleStarted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedModuleStopped
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ModuleCrashed
Module crashed
ModuleHealthChanged
Module health status changed
ModuleStateChanged
Module state changed
ConfigLoaded
Node configuration loaded/changed Modules can subscribe to this to react to config changes
NodeShutdown
Node is shutting down (modules should clean up gracefully)
NodeShutdownCompleted
Node shutdown completed
NodeStartupCompleted
Node startup completed (all components initialized)
ReservedMaintenanceStarted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedMaintenanceCompleted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
DataMaintenance
Data maintenance requested (unified cleanup/flush event) Modules should clean up old data and/or flush pending writes Urgency level indicates how urgent the operation is
HealthCheck
Health check performed (modules can report their health)
DiskSpaceLow
Disk space is low (modules should clean up data)
ReservedResourceLimitWarning
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedDandelionStemStarted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedDandelionStemAdvanced
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedDandelionFluffed
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedDandelionStemPathExpired
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedCompactBlockReceived
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedBlockReconstructionStarted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedBlockReconstructionCompleted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedFibreBlockEncoded
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedFibreBlockSent
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
CompanionUdpPeerRegistered
P2P peer gained a companion UDP endpoint (NODE_FIBRE after handshake; modules e.g. blvm-fibre)
CompanionUdpPeerUnregistered
Companion UDP peer removed (disconnect; peer had NODE_FIBRE)
ReservedPackageReceived
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedPackageRejected
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedUtxoCommitmentReceived
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedUtxoCommitmentVerified
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
Ban list shared with peer
BanListReceived
Ban list received from peer
ReservedSelectiveSyncPolicyApplied
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedActionExecuted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedModulePurchaseCompleted
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedStratumClientConnected
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedStratumClientDisconnected
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ReservedIBDBlockFiltered
F5 reserved. Nothing publishes this. The slot keeps the bincode index.
ModuleDiscovered
Module discovered
ModuleInstalled
Module installed
ModuleUpdated
Module updated
ModuleRemoved
Module removed
PeerPayment
Inbound BIP70 bytes on the node peer socket. Subscribers only.
ModuleEvent
A module-published event. The node stamps source_module. Modules cannot publish any other type.
FeeTableReady
First native fee table for a tip. Appended so ModuleEvent stays at index 118.
Trait Implementations§
impl Copy for EventType
Source§impl<'de> Deserialize<'de> for EventType
impl<'de> Deserialize<'de> for EventType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for EventType
Source§impl Serialize for EventType
impl Serialize for EventType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl Forget for EventType
impl Freeze for EventType
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnsafeUnpin for EventType
impl UnwindSafe for EventType
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.