From 9630f3477536829fdc09f3aba371da140b3799d5 Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Wed, 17 Oct 2018 13:34:59 -0700 Subject: [PATCH] client sets aux in import pipeline --- substrate/core/client/src/client.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/substrate/core/client/src/client.rs b/substrate/core/client/src/client.rs index a82b2133f0..eb9bbd6645 100644 --- a/substrate/core/client/src/client.rs +++ b/substrate/core/client/src/client.rs @@ -503,6 +503,7 @@ impl Client where body: Option>, authorities: Option>, finalized: bool, + aux: Vec<(Vec, Option>)>, ) -> error::Result { let parent_hash = import_headers.post().parent_hash().clone(); match self.backend.blockchain().status(BlockId::Hash(hash))? { @@ -593,6 +594,8 @@ impl Client 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 consensus::BlockImport for Client where post_runtime_digests, body, finalized, - .. + auxiliary, } = import_block; let parent_hash = header.parent_hash().clone(); @@ -948,6 +951,7 @@ impl consensus::BlockImport for Client where body, new_authorities, finalized, + auxiliary, ); *self.importing_block.write() = None;