Install CA certificates in relay images (#880)

* update CA certificates in relay images

* clippy

* clippy

* clippy
This commit is contained in:
Svyatoslav Nikolsky
2021-04-09 15:00:05 +03:00
committed by Bastian Köcher
parent 81d4eb9ea6
commit d4489a0a92
7 changed files with 12 additions and 12 deletions
@@ -156,7 +156,7 @@ impl SubmitEthereumHeaders for SubstrateClient<Rialto> {
) -> SubmittedHeaders<EthereumHeaderId, RpcError> { ) -> SubmittedHeaders<EthereumHeaderId, RpcError> {
let ids = headers.iter().map(|header| header.id()).collect(); let ids = headers.iter().map(|header| header.id()).collect();
let submission_result = async { let submission_result = async {
self.submit_signed_extrinsic(params.public().as_array_ref().clone().into(), |transaction_nonce| { self.submit_signed_extrinsic((*params.public().as_array_ref()).into(), |transaction_nonce| {
Bytes( Bytes(
Rialto::sign_transaction( Rialto::sign_transaction(
*self.genesis_hash(), *self.genesis_hash(),
@@ -257,7 +257,7 @@ impl SubmitEthereumExchangeTransactionProof for SubstrateClient<Rialto> {
instance: Arc<dyn BridgeInstance>, instance: Arc<dyn BridgeInstance>,
proof: rialto_runtime::exchange::EthereumTransactionInclusionProof, proof: rialto_runtime::exchange::EthereumTransactionInclusionProof,
) -> RpcResult<()> { ) -> RpcResult<()> {
self.submit_signed_extrinsic(params.public().as_array_ref().clone().into(), |transaction_nonce| { self.submit_signed_extrinsic((*params.public().as_array_ref()).into(), |transaction_nonce| {
Bytes( Bytes(
Rialto::sign_transaction( Rialto::sign_transaction(
*self.genesis_hash(), *self.genesis_hash(),
@@ -34,7 +34,7 @@ impl SubstrateFinalitySyncPipeline for MillauFinalityToRialto {
type TargetChain = Rialto; type TargetChain = Rialto;
fn transactions_author(&self) -> bp_rialto::AccountId { fn transactions_author(&self) -> bp_rialto::AccountId {
self.target_sign.public().as_array_ref().clone().into() (*self.target_sign.public().as_array_ref()).into()
} }
fn make_submit_finality_proof_transaction( fn make_submit_finality_proof_transaction(
@@ -59,7 +59,7 @@ impl SubstrateMessageLane for MillauMessagesToRialto {
type TargetChain = Rialto; type TargetChain = Rialto;
fn source_transactions_author(&self) -> bp_rialto::AccountId { fn source_transactions_author(&self) -> bp_rialto::AccountId {
self.source_sign.public().as_array_ref().clone().into() (*self.source_sign.public().as_array_ref()).into()
} }
fn make_messages_receiving_proof_transaction( fn make_messages_receiving_proof_transaction(
@@ -86,7 +86,7 @@ impl SubstrateMessageLane for MillauMessagesToRialto {
} }
fn target_transactions_author(&self) -> bp_rialto::AccountId { fn target_transactions_author(&self) -> bp_rialto::AccountId {
self.target_sign.public().as_array_ref().clone().into() (*self.target_sign.public().as_array_ref()).into()
} }
fn make_messages_delivery_transaction( fn make_messages_delivery_transaction(
@@ -141,7 +141,7 @@ pub async fn run(
metrics_params: MetricsParams, metrics_params: MetricsParams,
) -> Result<(), String> { ) -> Result<(), String> {
let stall_timeout = Duration::from_secs(5 * 60); let stall_timeout = Duration::from_secs(5 * 60);
let relayer_id_at_millau = millau_sign.public().as_array_ref().clone().into(); let relayer_id_at_millau = (*millau_sign.public().as_array_ref()).into();
let lane = MillauMessagesToRialto { let lane = MillauMessagesToRialto {
source_client: millau_client.clone(), source_client: millau_client.clone(),
@@ -34,7 +34,7 @@ impl SubstrateFinalitySyncPipeline for RialtoFinalityToMillau {
type TargetChain = Millau; type TargetChain = Millau;
fn transactions_author(&self) -> bp_millau::AccountId { fn transactions_author(&self) -> bp_millau::AccountId {
self.target_sign.public().as_array_ref().clone().into() (*self.target_sign.public().as_array_ref()).into()
} }
fn make_submit_finality_proof_transaction( fn make_submit_finality_proof_transaction(
@@ -59,7 +59,7 @@ impl SubstrateMessageLane for RialtoMessagesToMillau {
type TargetChain = Millau; type TargetChain = Millau;
fn source_transactions_author(&self) -> bp_rialto::AccountId { fn source_transactions_author(&self) -> bp_rialto::AccountId {
self.source_sign.public().as_array_ref().clone().into() (*self.source_sign.public().as_array_ref()).into()
} }
fn make_messages_receiving_proof_transaction( fn make_messages_receiving_proof_transaction(
@@ -86,7 +86,7 @@ impl SubstrateMessageLane for RialtoMessagesToMillau {
} }
fn target_transactions_author(&self) -> bp_rialto::AccountId { fn target_transactions_author(&self) -> bp_rialto::AccountId {
self.target_sign.public().as_array_ref().clone().into() (*self.target_sign.public().as_array_ref()).into()
} }
fn make_messages_delivery_transaction( fn make_messages_delivery_transaction(
@@ -141,7 +141,7 @@ pub async fn run(
metrics_params: MetricsParams, metrics_params: MetricsParams,
) -> Result<(), String> { ) -> Result<(), String> {
let stall_timeout = Duration::from_secs(5 * 60); let stall_timeout = Duration::from_secs(5 * 60);
let relayer_id_at_rialto = rialto_sign.public().as_array_ref().clone().into(); let relayer_id_at_rialto = (*rialto_sign.public().as_array_ref()).into();
let lane = RialtoMessagesToMillau { let lane = RialtoMessagesToMillau {
source_client: rialto_client.clone(), source_client: rialto_client.clone(),
@@ -58,7 +58,7 @@ impl SubstrateFinalitySyncPipeline for WestendFinalityToMillau {
} }
fn transactions_author(&self) -> bp_millau::AccountId { fn transactions_author(&self) -> bp_millau::AccountId {
self.target_sign.public().as_array_ref().clone().into() (*self.target_sign.public().as_array_ref()).into()
} }
fn make_submit_finality_proof_transaction( fn make_submit_finality_proof_transaction(
+1 -1
View File
@@ -628,5 +628,5 @@ fn print_sync_progress<P: HeadersSyncPipeline>(
now_best_header.map(|id| id.0), now_best_header.map(|id| id.0),
now_target_header, now_target_header,
); );
(now_time, now_best_header.clone().map(|id| id.0), *now_target_header) (now_time, (*now_best_header).map(|id| id.0), *now_target_header)
} }