fix consensus head bug
iterated on the vec
This commit is contained in:
parent
96a9a39789
commit
cfe4b2bf56
@ -252,7 +252,7 @@ impl ConsensusFinder {
|
|||||||
|
|
||||||
// loop over all the rpc heads (grouped by tier) and their parents to find consensus
|
// 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
|
// 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 {
|
if current_tier != rpc.tier {
|
||||||
// we finished processing a tier. check for primary results
|
// we finished processing a tier. check for primary results
|
||||||
if let Some(consensus) = self.count_votes(&primary_votes, web3_rpcs) {
|
if let Some(consensus) = self.count_votes(&primary_votes, web3_rpcs) {
|
||||||
|
Loading…
Reference in New Issue
Block a user