Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Fix load zkCounters from pool#2210

Merged
agnusmor merged 2 commits intohotfix/v0.1.Xfrom
hotfix/fix-load-zkcounters
Jun 21, 2023
Merged

Fix load zkCounters from pool#2210
agnusmor merged 2 commits intohotfix/v0.1.Xfrom
hotfix/fix-load-zkcounters

Conversation

@agnusmor
Copy link
Contributor

@agnusmor agnusmor commented Jun 20, 2023

What does this PR do?

It fixes the load of the zkCounters values in the function GetNonWIPTxsByStatus as it was not adding the zkCounters fields to the query and therefore the zkCounters was 0 for all the counters. When adding these txs to the worker, it was calculating a wrong efficiency, as all the zkcounters were 0. This bug was reported here (bug bounty):

https://polygon.atlassian.net/browse/ASF-285

Reviewers

Main reviewers:
@tclemos
@ToniRamirezM
@Psykepro

@agnusmor agnusmor requested a review from ToniRamirezM June 20, 2023 18:01
@agnusmor agnusmor requested a review from tclemos as a code owner June 20, 2023 18:01
@cla-bot cla-bot bot added the cla-signed label Jun 20, 2023
@agnusmor agnusmor self-assigned this Jun 20, 2023
@agnusmor agnusmor added this to the v0.1.3 milestone Jun 20, 2023
@agnusmor agnusmor requested a review from Psykepro June 20, 2023 18:05
@agnusmor agnusmor merged commit 906bdef into hotfix/v0.1.X Jun 21, 2023
@agnusmor agnusmor deleted the hotfix/fix-load-zkcounters branch June 21, 2023 12:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants