diff --git a/Cargo.lock b/Cargo.lock index 12da8dd6..131081ab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8326,7 +8326,6 @@ version = "0.1.0" name = "serai-ethereum-processor" version = "0.1.0" dependencies = [ - "alloy-consensus", "alloy-core", "alloy-provider", "alloy-rlp", @@ -8716,7 +8715,6 @@ dependencies = [ "build-solidity-contracts", "ethereum-schnorr-contract", "group", - "k256", "serai-client", "serai-processor-ethereum-deployer", "serai-processor-ethereum-erc20", diff --git a/processor/bin/src/lib.rs b/processor/bin/src/lib.rs index 86a3a0cd..7d98f812 100644 --- a/processor/bin/src/lib.rs +++ b/processor/bin/src/lib.rs @@ -284,21 +284,19 @@ pub async fn main_loop< let key_to_activate = KeyToActivate::>::try_recv(txn.as_mut().unwrap()).map(|key| key.0); - /* - `acknowledge_batch` takes burns to optimize handling returns with standard payments. - That's why handling these with a Batch (and not waiting until the following potential - `queue_burns` call makes sense. As for which Batch, the first is equally valid unless - we want to start introspecting (and should be our only Batch anyways). - */ - let mut this_batchs_burns = vec![]; - std::mem::swap(&mut burns, &mut this_batchs_burns); - // This is a cheap call as it internally just queues this to be done later let _: () = scanner.acknowledge_batch( txn.take().unwrap(), id, in_instructions, - this_batchs_burns, + /* + `acknowledge_batch` takes burns to optimize handling returns with standard + payments. That's why handling these with a Batch (and not waiting until the + following potential `queue_burns` call makes sense. As for which Batch, the first + is equally valid unless we want to start introspecting (and should be our only + Batch anyways). + */ + burns.drain(..).collect(), key_to_activate, ); } diff --git a/processor/ethereum/Cargo.toml b/processor/ethereum/Cargo.toml index c2a6f581..13978631 100644 --- a/processor/ethereum/Cargo.toml +++ b/processor/ethereum/Cargo.toml @@ -32,7 +32,6 @@ k256 = { version = "^0.13.1", default-features = false, features = ["std"] } alloy-core = { version = "0.8", default-features = false } alloy-rlp = { version = "0.3", default-features = false } -alloy-consensus = { version = "0.3", default-features = false } alloy-rpc-types-eth = { version = "0.3", default-features = false } alloy-transport = { version = "0.3", default-features = false } diff --git a/processor/ethereum/router/Cargo.toml b/processor/ethereum/router/Cargo.toml index e8884eae..d21a26d9 100644 --- a/processor/ethereum/router/Cargo.toml +++ b/processor/ethereum/router/Cargo.toml @@ -18,7 +18,6 @@ workspace = true [dependencies] group = { version = "0.13", default-features = false } -k256 = { version = "^0.13.1", default-features = false, features = ["std", "ecdsa", "arithmetic"] } alloy-core = { version = "0.8", default-features = false } alloy-consensus = { version = "0.3", default-features = false }