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

enhance: add whitelabel relayers #198

Merged
merged 2 commits into from
Oct 11, 2022
Merged

enhance: add whitelabel relayers #198

merged 2 commits into from
Oct 11, 2022

Conversation

unclezoro
Copy link
Collaborator

@unclezoro unclezoro commented Oct 10, 2022

Description

This PR will add a whitelabel relayer list, only whitelabel relayer can relay packages.

Rationale

The hacker register as a relayer and exploit the mekle-proof vulnerability, before we get further enhancement, we will close the
channel for community relayers.

Example

NA

Changes

NA

@@ -201,7 +201,7 @@ contract CrossChain is System, ICrossChain, IParamSubscriber{
return (true, packageType, relayFee, msgBytes);
}

function handlePackage(bytes calldata payload, bytes calldata proof, uint64 height, uint64 packageSequence, uint8 channelId) onlyInit onlyRelayer
function handlePackage(bytes calldata payload, bytes calldata proof, uint64 height, uint64 packageSequence, uint8 channelId) onlyInit onlyRelayer onlyWhiteLableRelayer
Copy link
Contributor

Choose a reason for hiding this comment

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

lable -> label

pythonberg1997
pythonberg1997 previously approved these changes Oct 11, 2022
@yutianwu yutianwu changed the title enhance: add whitelabe relayers enhance: add whitelabel relayers Oct 11, 2022
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