Unverified Commit 812dbff1 authored by Muharem Ismailov's avatar Muharem Ismailov Committed by GitHub
Browse files

Frame: `Consideration` trait generic over `Footprint` and indicates zero cost (#4596)

`Consideration` trait generic over `Footprint` and indicates zero cost
for a give footprint.

`Consideration` trait is generic over `Footprint` (currently defined
over the type with the same name). This makes it possible to setup a
custom footprint (e.g. current number of proposals in the storage).

`Consideration::new` and `Consideration::update` return an
`Option<Self>` instead `Self`, this make it possible to indicate a no
cost for a specific footprint (e.g. if current number of proposals in
the storage < max_proposal_count / 2 then no cost).

These cases need to be handled for
https://github.com/paritytech/polkadot-sdk/pull/3151
parent c4b3c1c6
Pipeline #482090 waiting for manual action with stages
in 1 hour, 26 minutes, and 6 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