[][src]Module grin_servers::common::hooks

This module allows to register callbacks on certain events. To add a custom callback simply implement the coresponding trait and add it to the init function

Traits

ChainEvents

Trait to be implemented by Chain Event Hooks

NetEvents

Trait to be implemented by Network Event Hooks

Functions

init_chain_hooks

Returns the list of event hooks that will be initialized for chain events

init_net_hooks

Returns the list of event hooks that will be initialized for network events