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

feat: MMD-720 Supernode as proxy for reward requests on behalf of their miners #137

Draft
wants to merge 36 commits into
base: master
Choose a base branch
from

Conversation

ltfschoen
Copy link
Collaborator

@ltfschoen ltfschoen commented Mar 7, 2021

Issue Unable to add integration tests for the eligibility proxy pallet because we need pallet-treasury dependencies in the tests and can't get them to work due to Tipper, so will update to Substrate 3 first

@ltfschoen ltfschoen changed the title feat: MMD-720 Supernode proxy reward requests feat: MMD-720 Supernode as proxy for reward requests on behalf of their miners Mar 8, 2021
@ltfschoen ltfschoen force-pushed the luke/proxy_rewards_supernode branch from d83d425 to 8eb3efc Compare March 11, 2021 22:00

// The implementation uses ensure_root, so only the root origin may add and remove members (not account 1)
assert_ok!(MembershipSupernodesTestModule::add_member(Origin::root(), 0));
assert_err!(MembershipSupernodesTestModule::add_member(Origin::root(), 0), DispatchError::BadOrigin);
Copy link
Collaborator Author

@ltfschoen ltfschoen Mar 17, 2021

Choose a reason for hiding this comment

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

Suggested change
assert_err!(MembershipSupernodesTestModule::add_member(Origin::root(), 0), DispatchError::BadOrigin);
assert_err!(MembershipSupernodesTestModule::add_member(Origin::signed(0), 0), DispatchError::BadOrigin);

assert_eq!(Balances::reserved_balance(0), 0);

assert_ok!(MembershipSupernodesTestModule::remove_member(Origin::root(), 0));
assert_err!(MembershipSupernodesTestModule::add_member(Origin::root(), 0), DispatchError::BadOrigin);
Copy link
Collaborator Author

@ltfschoen ltfschoen Mar 17, 2021

Choose a reason for hiding this comment

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

Suggested change
assert_err!(MembershipSupernodesTestModule::add_member(Origin::root(), 0), DispatchError::BadOrigin);
assert_err!(MembershipSupernodesTestModule::remove_member(Origin::signed(0), 0), DispatchError::BadOrigin);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant