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

test: verifreg: Test notaries cannot remove datacap from verifreg #9557

Merged
merged 5 commits into from
Oct 31, 2022

Conversation

geoff-vball
Copy link
Contributor

Related Issues

Proposed Changes

Tests the fix implemented here. Verifreg notaries should not be able to remove datacap from the verifreg actor, because the verifreg's datacap balance should always equal the datacap of all pending allocations.

Additional Info

Checklist

Before you mark the PR ready for review, please make sure that:

  • Commits have a clear commit message.
  • PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, test
    • area, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps
  • New features have usage guidelines and / or documentation updates in
  • Tests exist for new functionality or change in behavior
  • CI is green

@geoff-vball geoff-vball force-pushed the gstuart/remove-datacap-verifreg-test branch from 3522905 to 830b58c Compare October 26, 2022 16:29
itests/remove_verifreg_datacap_test.go Outdated Show resolved Hide resolved
itests/remove_verifreg_datacap_test.go Outdated Show resolved Hide resolved
@arajasek arajasek mentioned this pull request Oct 31, 2022
7 tasks
@geoff-vball geoff-vball force-pushed the gstuart/remove-datacap-verifreg-test branch from 2a1d83c to ec53587 Compare October 31, 2022 13:23
@geoff-vball geoff-vball marked this pull request as ready for review October 31, 2022 13:42
@geoff-vball geoff-vball requested a review from a team as a code owner October 31, 2022 13:42
@geoff-vball
Copy link
Contributor Author

@arajasek Plz check that the most recent commit seems right to you

@arajasek
Copy link
Contributor

Yup, i think that's fine!

@arajasek arajasek merged commit 4463abd into release/v1.18.0 Oct 31, 2022
@arajasek arajasek deleted the gstuart/remove-datacap-verifreg-test branch October 31, 2022 19:27
if err != nil {
return nil, xerrors.Errorf("apply message failed: %w", err)
}
// Don't check for error here, we want to bubble it up, but also return ret as an InvocResult
Copy link
Contributor

Choose a reason for hiding this comment

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

ret may be nil? @geoff-vball

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@simlecode you're right. I think this PR has the right behaviour #9582

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.

3 participants