Change pallet referenda TracksInfo::tracks to return an iterator (#2072)
Returning an iterator in `TracksInfo::tracks()` instead of a static
slice allows for more flexible implementations of `TracksInfo` that can
use the chain storage without compromising a lot on the
performance/memory penalty if we were to return an owned `Vec` instead.
---------
Co-authored-by:
Pablo Andrés Dorado Suárez <hola@pablodorado.com>
parent
8cca727f
Pipeline
#515659
waiting for manual action
with stages
in
1 hour, 23 minutes, and 26 seconds
Stage:
Stage:
Stage:
Stage:
Stage:
Showing
- cumulus/parachains/runtimes/collectives/collectives-westend/src/ambassador/tracks.rs 53 additions, 53 deletions.../collectives/collectives-westend/src/ambassador/tracks.rs
- cumulus/parachains/runtimes/collectives/collectives-westend/src/fellowship/tracks.rs 113 additions, 110 deletions.../collectives/collectives-westend/src/fellowship/tracks.rs
- polkadot/runtime/rococo/src/governance/fellowship.rs 60 additions, 55 deletionspolkadot/runtime/rococo/src/governance/fellowship.rs
- polkadot/runtime/rococo/src/governance/tracks.rs 84 additions, 79 deletionspolkadot/runtime/rococo/src/governance/tracks.rs
- polkadot/runtime/westend/src/governance/tracks.rs 84 additions, 79 deletionspolkadot/runtime/westend/src/governance/tracks.rs
- prdoc/pr_2072.prdoc 23 additions, 0 deletionsprdoc/pr_2072.prdoc
- substrate/bin/node/runtime/src/lib.rs 56 additions, 34 deletionssubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/referenda/src/benchmarking.rs 2 additions, 2 deletionssubstrate/frame/referenda/src/benchmarking.rs
- substrate/frame/referenda/src/lib.rs 27 additions, 54 deletionssubstrate/frame/referenda/src/lib.rs
- substrate/frame/referenda/src/mock.rs 22 additions, 20 deletionssubstrate/frame/referenda/src/mock.rs
- substrate/frame/referenda/src/tests.rs 3 additions, 2 deletionssubstrate/frame/referenda/src/tests.rs
- substrate/frame/referenda/src/types.rs 65 additions, 36 deletionssubstrate/frame/referenda/src/types.rs