-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
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.
Nice!
…reserve-tips-migration
I wonder now if these migrations really needs to be part of the pallets. |
I think we can delete pallet-tips from Substrate once it is un-deployed from DotSama, so no maintenance burden. |
@ggwpez are we sure there're no parachains using it? |
bot merge |
Waiting for commit status. |
Merge cancelled due to error. Error: Statuses failed for 7b51e6b |
Parachains can use it all they want, but maintaining pallets that we dont use ourselves does not make any sense (to me). |
bot merge |
Waiting for commit status. |
Really???? |
The Gov1 pallets can hopefully also be moved out of Substrate - to ORML for example. |
I guess you should talk with ORML maintainers about it first before making a decision / suggestion. And of course with every parachain team devs because this is going to be another big breaking change. And for what? Move some of your responsibility to someone else so it is no longer your problem? Yeah sure. What is exactly Substrate and FRAME? |
@xlc has a fair point. We could at least move old pallets to an unmaintained/archived dir for a period of time with the hope that others projects might take up the maintenance so that there's a period of time for people to migrate off it to something else. We need to be better at backward compatibility rather than rug pulling pallets out from under people. People can't build on shifting sands. |
Yes it should go through the deprecation process (paritytech/polkadot-sdk#182), and in the process of that, some other entity would hopefully pick up the maintenance of that. Could be any entity in the ecosystem that has an interest in their maintenance.
Yea true. I dont know if this has been talked about publicly yet, but the LTS release will help with that.
I did not intend to decide anything on behalves of ORML maintainers. Sorry if it seemed so.
Now this is my personal opinion (and not any kind of decision on behalf of Parity or another party): |
I have to mostly agree with @ggwpez here. Like any collective of individuals, Parity is neither able nor implicitly responsible to indefinitely maintain superseded or deprecated code, even if it was the one who originally wrote it. |
I agree this should be a collective effort not just Parity but also there are some work that Parity have to do to make it possible. This isn’t a new topic. #11530 |
* unreserve all tip funds migration * improve test * fix comment * implement weights * saturating_accrue * remove unnecessary collect * prefer ensure * use assert * use saturating_add * use saturating_accrue * test pre_upgrade and post_upgrade * remove pallet_treasury bound * resolve pr comments * rename migration * kick ci * kick ci
Partial paritytech/polkadot-sdk#485
Overview
Adds a migration that unreserves all deposits made by the
tips
pallet.Details
tips
contains aTips
storage item containing amounts reserved by open tips.pre_upgrade
records the reserves of all accounts with open tips prior to the migration, for use later in post_upgrade.on_runtime_upgrade
unreserves all balances locked up in tips.post_upgrade
checks that the reserved balances were reduced by the expected amount.Questions for reviewers / todos:
I'm not sure how to calculate the weights inon_runtime_upgrade
, would appreciate some guidance there.