mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 21:01:02 +00:00
Install CA certificates in relay images (#880)
* update CA certificates in relay images * clippy * clippy * clippy
This commit is contained in:
committed by
Bastian Köcher
parent
81d4eb9ea6
commit
d4489a0a92
@@ -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(),
|
||||
@@ -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(),
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
@@ -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(
|
||||
@@ -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(),
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
@@ -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(
|
||||
@@ -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(),
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user