Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: refactor(rm spending counter): audit tooling | NPG-000 #663

Closed
wants to merge 20 commits into from

Conversation

cong-or
Copy link
Contributor

@cong-or cong-or commented Jan 23, 2024

NOT PRODUCTION CODE

The following is our production chain-libs

We have removed spending counter logic long ago due to inherent flaws in the context of correctness. Audit tooling on cat core needs to reflect this to perform a correct offline tally without errors hence removing the checks.

@cong-or cong-or changed the title refactor(rm spending counter): audit tooling fix: refactor(rm spending counter): audit tooling | NPG-000 Jan 23, 2024
@cong-or cong-or marked this pull request as ready for review January 23, 2024 21:39
@cong-or cong-or requested a review from kukkok3 January 23, 2024 21:39
@cong-or cong-or enabled auto-merge (squash) January 24, 2024 09:51
@@ -58,35 +58,12 @@ impl SpendingCounterIncreasing {
/// an error reported.
///
/// If the counter match succesfully, then the counter at this lane is incremented by one.
pub fn next_verify(&mut self, counter: SpendingCounter) -> Result<(), Error> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe make explicit in the comment why this function it just returns Ok() ?

kukkok3
kukkok3 previously approved these changes Jan 24, 2024
Copy link
Contributor

@kukkok3 kukkok3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other then the comment LGTM

kukkok3
kukkok3 previously approved these changes Jan 24, 2024
Copy link
Contributor

@kukkok3 kukkok3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cong-or cong-or requested a review from kukkok3 January 24, 2024 18:33
@cong-or cong-or closed this Jan 25, 2024
auto-merge was automatically disabled January 25, 2024 09:21

Pull request was closed

@cong-or cong-or reopened this Jan 30, 2024
kukkok3
kukkok3 previously approved these changes Jan 30, 2024
Copy link
Contributor

@kukkok3 kukkok3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cong-or cong-or closed this Jan 30, 2024
@cong-or cong-or deleted the rm-spending-counter-for-audit-tooling branch January 30, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants