Skip to content
Unverified Commit 5c22d667 authored by thiolliere's avatar thiolliere Committed by GitHub
Browse files

[Based on transaction extension 3685] make transaction extension pipeline not...

[Based on transaction extension 3685] make transaction extension pipeline not rejecting not signed origins (#5612)

Based on https://github.com/paritytech/polkadot-sdk/pull/3685

Update transaction extensions so that not signed origins are passing
throught and correctly refunded.
* payments transaction extensions is done with refund.
Ideally the transaction extension should be an option, so that we don't
need to refund and instead we don't charge when the transaction
extension is not used.
* `PrevalidateAttests` is refactor to have the weight at the correct
place.
* `CheckNonce` is refunded for when nonce is not checked.
Same ideally `Nonce` should be `Option<Nonce>`, so that we can have
proper weight ahead of time and not need to do refund.
* bridges transaction extensions, allow not signed origins. But
benchmark and weight will be done in another PR

I'm thinking we should be able to support multiple version of
transaction extension at the same time in the runtime. So we can easily
extend the capability of the transaction extensions.
Then we can have optional transaction payment and optional check nonce
easily.

@georgepisaltu
parent c02478b8
Pipeline #498029 waiting for manual action with stages
in 1 hour, 45 minutes, and 37 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment