-
Notifications
You must be signed in to change notification settings - Fork 732
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pallet-scheduler: Unrequest call on failed lookup (#3849)
When the scheduler fails to lookup a `call`, it should unrequest it, because it will not be required anymore.
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
title: Unrequest a pre-image when it failed to execute | ||
|
||
doc: | ||
- audience: Runtime User | ||
description: | | ||
When a referenda finished the proposal will be scheduled. When it is scheduled, | ||
the pre-image is requested. The pre-image is unrequested after the proposal | ||
was executed. However, if the proposal failed to execute it wasn't unrequested. | ||
Thus, it could not be removed from the on-chain state. This issue is now solved | ||
by ensuring to unrequest the pre-image when it failed to execute. | ||
|
||
crates: | ||
- name: pallet-scheduler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters