thrumdev / blobs

Blobchains on Polkadot and Kusama
https://docs-site-pi.vercel.app
Apache License 2.0
64 stars 8 forks source link

fee_adjustments: extract logic into new pallet #174

Closed gabriele-0201 closed 11 months ago

gabriele-0201 commented 11 months ago

Move all of the fee adjustment logic into a separate pallet accordingly to #173

Storage items are TargetBlockSize and NextLengthMultiplier, both needing initial values. I decided to define default values for them when empty. This could also be solved with a GenesisConfig of the pallet, but it seems very complicated and would likely require additional steps for the runtime upgrade. Using default values for the storage items should not require any custom handling for the upgrade.

gabriele-0201 commented 11 months ago

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

gabriele-0201 commented 11 months ago

I have manually created the SlowAdjustingFeeUpdate with parameters specified in the runtime instead of using the struct specified in polkadot_runtime_common. This allows integration testing (implemented in #176) to work on both weight and length multipliers. Having tests already in place would simplify the process of changing and testing one parameter from the default