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

client: print sha256 of proposal wasm #3617

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

Fraccaman
Copy link
Member

Describe your changes

Printing the sha256 of the wasm associated with a proposal makes it easier to check the its integrity and validatity.

Checklist before merging

  • If this PR has some consensus breaking changes, I added the corresponding breaking:: labels
    • This will require 2 reviewers to approve the changes

Comment on lines -125 to -132
let proposal_code =
gov_api::get_proposal_code(&shell.state, id)?
.unwrap_or_default();
let _result = execute_default_proposal(
shell,
id,
proposal_code.clone(),
)?;
Copy link
Member Author

Choose a reason for hiding this comment

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

@grarco I think this is not needed in this branch right?

Copy link
Contributor

@grarco grarco Aug 12, 2024

Choose a reason for hiding this comment

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

Correct and I don't know why it is still there. I swear we talked about this thing already a few months ago and we fixed it.

Anyway, I also see that execute_pgf_funding_proposal returns a boolean that we never use so we might remove that too?

Copy link
Member Author

Choose a reason for hiding this comment

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

im now using the result to improve the print statement

Copy link
Contributor

Choose a reason for hiding this comment

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

But it looks to me that execute_pgf_funding_proposal only ever returns Ok(true)

Copy link

codecov bot commented Aug 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Project coverage is 61.18%. Comparing base (c1f015c) to head (8cb793c).
Report is 13 commits behind head on main.

Files Patch % Lines
crates/governance/src/storage/mod.rs 0.00% 11 Missing ⚠️
crates/node/src/shell/governance.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3617   +/-   ##
=======================================
  Coverage   61.18%   61.18%           
=======================================
  Files         311      311           
  Lines      101433   101442    +9     
=======================================
+ Hits        62059    62069   +10     
+ Misses      39374    39373    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Fraccaman Fraccaman force-pushed the fraccaman/governance-proposal-client-better-hash branch from 53d0963 to bdd18b7 Compare August 12, 2024 16:37
@Fraccaman Fraccaman marked this pull request as ready for review August 12, 2024 17:11
@Fraccaman Fraccaman requested a review from grarco August 13, 2024 11:04
@Fraccaman Fraccaman force-pushed the fraccaman/governance-proposal-client-better-hash branch from bdd18b7 to 8cb793c Compare August 13, 2024 11:13
@tzemanovic tzemanovic added the merge Ready to merge - mergifyio bot will add the PR to merge queue when all checks pass label Aug 13, 2024
mergify bot added a commit that referenced this pull request Aug 13, 2024
mergify bot added a commit that referenced this pull request Aug 13, 2024
mergify bot added a commit that referenced this pull request Aug 13, 2024
mergify bot added a commit that referenced this pull request Aug 13, 2024
@mergify mergify bot merged commit f08d3f2 into main Aug 13, 2024
20 of 21 checks passed
@mergify mergify bot deleted the fraccaman/governance-proposal-client-better-hash branch August 13, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge Ready to merge - mergifyio bot will add the PR to merge queue when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants