Remove redundant network
@@ -49,9 +49,8 @@ impl VerifiedTx {
pub async fn verify(
request_data: RequestData,
eth_checker: &EthereumChecker,
- network: Network,
) -> Result<Self, TxAddError> {
- verify_eth_signature(&request_data, eth_checker, network).await?;
+ verify_eth_signature(&request_data, eth_checker).await?;
let mut tx_variant = request_data.get_tx_variant();
verify_tx_correctness(&mut tx_variant)?;
@@ -85,7 +84,6 @@ impl VerifiedTx {
async fn verify_eth_signature(
request_data: &RequestData,
eth_checker: &EthereumChecker,
- network: Network,
) -> Result<(), TxAddError> {
match request_data {
RequestData::Tx(request) => {
@@ -338,12 +336,11 @@ pub fn start_sign_checker_detached(
handle: Handle,
mut input: mpsc::Receiver<VerifySignatureRequest>,
eth_checker: EthereumChecker,
- eth_network: Network,
) {
while let Some(VerifySignatureRequest { data, response }) = input.next().await {
let eth_checker = eth_checker.clone();
handle.spawn(async move {
- let resp = VerifiedTx::verify(data, &eth_checker, eth_network).await;
+ let resp = VerifiedTx::verify(data, &eth_checker).await;
response.send(resp).unwrap_or_default();
});
@@ -361,12 +358,7 @@ pub fn start_sign_checker_detached(
.build()
.expect("failed to build runtime for signature processor");
let handle = runtime.handle().clone();
- runtime.block_on(checker_routine(
- handle,
- input,
- eth_checker,
- config.chain.eth.network,
- ));
+ runtime.block_on(checker_routine(handle, input, eth_checker));
})
.expect("failed to start signature checker thread");
}
