Type Alias sc_client_api::client::OnImportAction
source · pub type OnImportAction<Block> = Box<dyn Fn(&BlockImportNotification<Block>) -> AuxDataOperations + Send>;
Expand description
Callback invoked before committing the operations created during block import. This gives the opportunity to perform auxiliary pre-commit actions and optionally enqueue further storage write operations to be atomically performed on commit.
Aliased Type§
struct OnImportAction<Block>(/* private fields */);