Skip to content

Commit

Permalink
Install CA certificates in relay images (paritytech#880)
Browse files Browse the repository at this point in the history
* update CA certificates in relay images

* clippy

* clippy

* clippy
  • Loading branch information
svyatonik authored and serban300 committed Apr 8, 2024
1 parent eee7f77 commit a6d71be
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions bridges/relays/bin-ethereum/src/rialto_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl SubmitEthereumHeaders for SubstrateClient<Rialto> {
) -> SubmittedHeaders<EthereumHeaderId, RpcError> {
let ids = headers.iter().map(|header| header.id()).collect();
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(
Rialto::sign_transaction(
*self.genesis_hash(),
Expand Down Expand Up @@ -257,7 +257,7 @@ impl SubmitEthereumExchangeTransactionProof for SubstrateClient<Rialto> {
instance: Arc<dyn BridgeInstance>,
proof: rialto_runtime::exchange::EthereumTransactionInclusionProof,
) -> 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(
Rialto::sign_transaction(
*self.genesis_hash(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl SubstrateFinalitySyncPipeline for MillauFinalityToRialto {
type TargetChain = Rialto;

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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl SubstrateMessageLane for MillauMessagesToRialto {
type TargetChain = Rialto;

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(
Expand All @@ -86,7 +86,7 @@ impl SubstrateMessageLane for MillauMessagesToRialto {
}

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(
Expand Down Expand Up @@ -141,7 +141,7 @@ pub async fn run(
metrics_params: MetricsParams,
) -> Result<(), String> {
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 {
source_client: millau_client.clone(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl SubstrateFinalitySyncPipeline for RialtoFinalityToMillau {
type TargetChain = Millau;

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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl SubstrateMessageLane for RialtoMessagesToMillau {
type TargetChain = Millau;

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(
Expand All @@ -86,7 +86,7 @@ impl SubstrateMessageLane for RialtoMessagesToMillau {
}

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(
Expand Down Expand Up @@ -141,7 +141,7 @@ pub async fn run(
metrics_params: MetricsParams,
) -> Result<(), String> {
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 {
source_client: rialto_client.clone(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl SubstrateFinalitySyncPipeline for WestendFinalityToMillau {
}

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(
Expand Down
2 changes: 1 addition & 1 deletion bridges/relays/headers/src/sync_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,5 +628,5 @@ fn print_sync_progress<P: HeadersSyncPipeline>(
now_best_header.map(|id| id.0),
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)
}

0 comments on commit a6d71be

Please sign in to comment.