fix consensus head bug

iterated on the vec
This commit is contained in:
Bryan Stitt 2023-05-12 23:41:15 -07:00
parent 96a9a39789
commit cfe4b2bf56

View File

@ -252,7 +252,7 @@ impl ConsensusFinder {
// loop over all the rpc heads (grouped by tier) and their parents to find consensus
// TODO: i'm sure theres a lot of shortcuts that could be taken, but this is simplest to implement
for (rpc, rpc_head) in self.rpc_heads.iter() {
for (rpc, rpc_head) in rpc_heads_by_tier.into_iter() {
if current_tier != rpc.tier {
// we finished processing a tier. check for primary results
if let Some(consensus) = self.count_votes(&primary_votes, web3_rpcs) {