diff --git a/substrate/core/client/src/client.rs b/substrate/core/client/src/client.rs index a82b2133f0e10354e3e4e21e566b00a31bc03c1f..eb9bbd6645f27010dc57ea1f5ad32c663b0a3467 100644 --- a/substrate/core/client/src/client.rs +++ b/substrate/core/client/src/client.rs @@ -503,6 +503,7 @@ impl<B, E, Block> Client<B, E, Block> where body: Option<Vec<Block::Extrinsic>>, authorities: Option<Vec<AuthorityId>>, finalized: bool, + aux: Vec<(Vec<u8>, Option<Vec<u8>>)>, ) -> error::Result<ImportResult> { let parent_hash = import_headers.post().parent_hash().clone(); match self.backend.blockchain().status(BlockId::Hash(hash))? { @@ -593,6 +594,8 @@ impl<B, E, Block> Client<B, E, Block> where if let Some(Some(changes_update)) = changes_update { transaction.update_changes_trie(changes_update)?; } + + transaction.set_aux(aux)?; self.backend.commit_operation(transaction)?; if make_notifications { @@ -916,7 +919,7 @@ impl<B, E, Block> consensus::BlockImport<Block> for Client<B, E, Block> where post_runtime_digests, body, finalized, - .. + auxiliary, } = import_block; let parent_hash = header.parent_hash().clone(); @@ -948,6 +951,7 @@ impl<B, E, Block> consensus::BlockImport<Block> for Client<B, E, Block> where body, new_authorities, finalized, + auxiliary, ); *self.importing_block.write() = None;