Fix the async flow with the Router

It had sequential async calls with complexity O(n), with a variety of redundant
calls. There was also a constant of... 4? 5? for each item. Now, the total
sequence depth is just 3-4.
This commit is contained in:
Luke Parker
2025-01-23 06:10:18 -05:00
parent 669b8b776b
commit 7e53eff642
7 changed files with 314 additions and 206 deletions

3
Cargo.lock generated
View File

@@ -9446,8 +9446,8 @@ dependencies = [
"alloy-sol-macro",
"alloy-sol-types",
"alloy-transport",
"futures-util",
"serai-processor-ethereum-primitives",
"tokio",
]
[[package]]
@@ -9480,6 +9480,7 @@ dependencies = [
"borsh",
"build-solidity-contracts",
"ethereum-schnorr-contract",
"futures-util",
"group",
"k256",
"rand_core",