Skip to content

pallet-vesting: Configurable block number provider#2403

Merged
bkchr merged 20 commits into
paritytech:masterfrom
arrudagates:gabriel-vesting_block_provider
Dec 11, 2023
Merged

pallet-vesting: Configurable block number provider#2403
bkchr merged 20 commits into
paritytech:masterfrom
arrudagates:gabriel-vesting_block_provider

Conversation

@arrudagates

Copy link
Copy Markdown
Contributor

This PR makes the block number provider configurable through the Config trait in pallet-vesting, this gives parachains the option to use the relay chain block number provider from ParachainSystem.

@arrudagates arrudagates requested review from a team November 19, 2023 22:07
@paritytech-review-bot paritytech-review-bot Bot requested a review from a team November 19, 2023 22:07
@joepetrowski

Copy link
Copy Markdown
Contributor

bot fmt

@command-bot

command-bot Bot commented Nov 20, 2023

Copy link
Copy Markdown

@joepetrowski https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/4398815 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh". Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 68-f86e773d-01e1-4bd5-a2a6-ad0a2d5f7464 to cancel this command or bot cancel to cancel all commands in this pull request.

@joepetrowski joepetrowski added the T1-FRAME This PR/Issue is related to core FRAME, the framework. label Nov 20, 2023
@command-bot

command-bot Bot commented Nov 20, 2023

Copy link
Copy Markdown

@joepetrowski Command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh" has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/4398815 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/4398815/artifacts/download.

Comment thread polkadot/runtime/westend/src/lib.rs
@paritytech-ci paritytech-ci requested a review from a team November 20, 2023 06:35
@arrudagates

Copy link
Copy Markdown
Contributor Author

These errors are not showing up when running the commands locally...

@bkchr bkchr requested a review from joepetrowski November 20, 2023 20:06
@bkchr

bkchr commented Nov 22, 2023

Copy link
Copy Markdown
Member

@arrudagates you still need to fix the benchmarking to use the BlockNumberProvider as well for the set_block_number calls.

@bkchr bkchr enabled auto-merge (squash) November 24, 2023 16:00
auto-merge was automatically disabled November 27, 2023 15:37

Merge queue setting changed

@bkchr

bkchr commented Dec 8, 2023

Copy link
Copy Markdown
Member

@arrudagates can you please add a prdoc as decribed here. Ty

Comment thread substrate/frame/vesting/src/lib.rs Outdated
@bkchr

bkchr commented Dec 11, 2023

Copy link
Copy Markdown
Member

@arrudagates

Copy link
Copy Markdown
Contributor Author

Comment thread prdoc/pr_2403.prdoc Outdated
@bkchr

bkchr commented Dec 11, 2023

Copy link
Copy Markdown
Member

@arrudagates the benchmarks for pallet-vesting are still failing. You should be able to reproduce this by running cargo test -p pallet-vesting --features runtime-benchmarks locally.

@bkchr bkchr merged commit c2d45e7 into paritytech:master Dec 11, 2023
@arrudagates arrudagates deleted the gabriel-vesting_block_provider branch December 13, 2023 13:09
@Polkadot-Forum

Copy link
Copy Markdown

This pull request has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/polkadot-release-analysis-v1-6-0/5855/1

bkontur added a commit to bkontur/runtimes that referenced this pull request Jan 29, 2024
bkontur added a commit to bkontur/runtimes that referenced this pull request Jan 29, 2024
bkontur added a commit to bkontur/runtimes that referenced this pull request Jan 30, 2024
bkontur added a commit to bkontur/runtimes that referenced this pull request Feb 3, 2024
bkontur added a commit to bkontur/runtimes that referenced this pull request Feb 3, 2024
bkontur added a commit to bkontur/runtimes that referenced this pull request Feb 6, 2024
bgallois pushed a commit to duniter/duniter-polkadot-sdk that referenced this pull request Mar 25, 2024
This PR makes the block number provider configurable through the Config
trait in pallet-vesting, this gives parachains the option to use the
relay chain block number provider from ParachainSystem.

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T1-FRAME This PR/Issue is related to core FRAME, the framework.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants