1

I am creating a mechanism to do the feeless transaction. Even though I have implemented the feeless transaction, if the user is not eligible to do the feeless transaction, the user can still call the extrinsic and maybe crash the node. Is there any way we can add the checks before the transaction goes into the transaction pool?

3
  • how have you implemented a feeless transaction exactly? using #[pallet::feeless_if]?
    – kianenigma
    Commented Jul 8 at 17:35
  • I think you can make a storage and add the address that doesn't need to pay any fee and use it. Commented Jul 10 at 6:27
  • Yes, I used feeless_if in my solution.
    – Pankaj
    Commented Jul 13 at 20:26

1 Answer 1

0

if the user is not eligible to do the feeless transaction, the user can still call the extrinsic and maybe crash the node.

In this case, the validation itself will fail. This should not cause the node to crash.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.