-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will put this in the audit queue soon, will probably take a while.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks reasonable to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should await audit.
Co-authored-by: Louis Merlin <[email protected]>
User @louismerlin, please sign the CLA here. |
@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 <[email protected]> Co-authored-by: Louis Merlin <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
* 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 <[email protected]> Co-authored-by: Louis Merlin <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
* 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 <[email protected]> Co-authored-by: Louis Merlin <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
Add
force_batch
toutility
pallet 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