Add force_batch to utility pallet#11148
Add force_batch to utility pallet#11148paritytech-processbot[bot] merged 9 commits intoparitytech:masterfrom
Conversation
|
Very cool! You already have this deployed on the Khala testnet, right? For what are you using it, if I may ask? The code is very close the the original |
I forgot to click "comment" 😄
Yes! we use this for a long time, I forgot to contribute to Substrate...
We have serveral usecase, for example:
Done Overrall, this is another version of
|
|
The naming isn't great. Try implies that you try to execute something and bail on an error. So, this naming would fit better to the original dispatchable. We should rename the new one to convey its implementation details better to the user. |
could you give a suggest? it's should useful for batch a bunch of discrate calls, we also not satisfied its naming, but I don't have better idea. |
kianenigma
left a comment
There was a problem hiding this comment.
Code seems to look fine, but I would call this force_batch, since you are forcing the execution of all calls, even if one fails?
|
|
|
Name changed. |
shawntabrizi
left a comment
There was a problem hiding this comment.
This looks reasonable to me.
Co-authored-by: Louis Merlin <hello@louismerl.in>
|
User @louismerlin, please sign the CLA here. |
Understood, thank you, I'll do this tomorrow |
|
@bkchr companion added. |
|
bot merge |
|
Error: "Check reviews" status is not passing for paritytech/polkadot#5452 |
|
@jasl if you would like a small tip in KSM or DOT, please include your address in the PR description. |
|
bot merge |
|
Error: "Check reviews" status is not passing for paritytech/polkadot#5452 |
wow thanks! |
maybe I do things wrong... follow the guide (https://github.com/paritytech/substrate/blob/master/docs/CONTRIBUTING.adoc#updating-polkadot-as-well) I've done step 1 - 5 use |
|
bot merge |
|
Error: "Check reviews" status is not passing for paritytech/polkadot#5452 |
|
/tip small |
|
A small tip was successfully submitted for jasl (13asnZw4BnT2dsTYU4YTm3GMXySF6ocNov96493SPMNrVd2c on polkadot). https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Frpc.polkadot.io#/treasury/tips |
|
bot merge |
|
Error: "Check reviews" status is not passing for paritytech/polkadot#5452 |
|
bot merge |
* Add batch_try to utility pallet * lint * rename utility.batch_try -> utility.force_batch * Remove un-needed index field for utility.ItemFailed event * Remove indexes of utility,BatchCompletedWithErrors * Apply suggestions from code review Co-authored-by: Louis Merlin <hello@louismerl.in> Co-authored-by: Louis Merlin <hello@louismerl.in> Co-authored-by: Bastian Köcher <info@kchr.de>
* Add batch_try to utility pallet * lint * rename utility.batch_try -> utility.force_batch * Remove un-needed index field for utility.ItemFailed event * Remove indexes of utility,BatchCompletedWithErrors * Apply suggestions from code review Co-authored-by: Louis Merlin <hello@louismerl.in> Co-authored-by: Louis Merlin <hello@louismerl.in> Co-authored-by: Bastian Köcher <info@kchr.de>
* Add batch_try to utility pallet * lint * rename utility.batch_try -> utility.force_batch * Remove un-needed index field for utility.ItemFailed event * Remove indexes of utility,BatchCompletedWithErrors * Apply suggestions from code review Co-authored-by: Louis Merlin <hello@louismerl.in> Co-authored-by: Louis Merlin <hello@louismerl.in> Co-authored-by: Bastian Köcher <info@kchr.de>
Add
force_batchtoutilitypallet which is useful for you wanna batch a bunch of calls that some of them may failed but failed can be ignored.polkadot address: 13asnZw4BnT2dsTYU4YTm3GMXySF6ocNov96493SPMNrVd2c
polkadot companion: paritytech/polkadot#5452