Skip to content

Fix admin revocation bug that an admin can only revoke itself#146

Open
LiangrunDa wants to merge 1 commit intoinkandswitch:mainfrom
LiangrunDa:fix-admin-revoke
Open

Fix admin revocation bug that an admin can only revoke itself#146
LiangrunDa wants to merge 1 commit intoinkandswitch:mainfrom
LiangrunDa:fix-admin-revoke

Conversation

@LiangrunDa
Copy link
Copy Markdown

This commit fixes a bug where an admin can only revoke itself, due to the check in revoke_member. Test test_admin_revoke_member can reproduces this bug and also serves as a correctness test for this fix.
Further, the proof chain check incorrectly uses proof.as_ref() as next head instead of next_proof.as_ref(). This bug is fixed as well.

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.

1 participant