snowbridge icon indicating copy to clipboard operation
snowbridge copied to clipboard

Should discard calls that have an abnormally high weight.

Open vgeddes opened this issue 3 years ago • 1 comments

In theory, Solidity apps could potentially send a message (dispatchable call) to our parachain with an abnormally high weight. Executing these messages could result in huge fees for the relayer, or potentially they won't be executed at all, causing the bridge to break.

In practice not so much an issue with our current system, as I have logic in the parachain to filter out any other calls other than DOTApp.unlock, ETHApp.mint and ERC20App.mint.

So in future, if we ever allow calls to other dispatchables (local or remote via XCMP), we will need to guard against the problem somehow.

vgeddes avatar Mar 17 '21 21:03 vgeddes

This problem will be resolved by https://github.com/Snowfork/snowbridge/pull/540

vgeddes avatar Feb 08 '22 23:02 vgeddes