-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
State object cleanup questions. #2226
Comments
|
If we implement any strategy that separates the initial thread creation cost from the future pay-off, we could incentivize the weird type of "forum thread" investing before the runtime upgrade when the runtime upgrade contains thread cost parameter adjustments. Could we solve the "thread cleanup pay-off inflation" problem using the thread moderation by a leader with its working group budget? |
I talked it over with @bedeho, to fix this problem we will go with the following solution:
|
Background
We are currently taking the following approach to incentivizing actors to remove stale objects from storage. We have a module specific account taking the role of a treasury which accumulates bounties submitted for state objects, which are then later released during a cleanup operation triggered by the owner. Importantly, we are also tracking the individual reward in each object, so we have
and the amount required for the bounty is a runtime constant, e.g.
type StartingCleanupPayOff: Get<Self::Balance>;
.Questions
cleanup_payoff: Balance
, rather than just computing the payoff as a function of the size of thread (in so far as we even care about this, and not have a fixed payoff per thread), is because one anticipates that theStartingCleanupPayOff
will vary over time, which requires runtime upgrades. Is this correct?cleanup_pay_off
values which now cannot be economically recovered, because the tx fee of the recovery action costs more. Is this a big problem? Do we then have to do a migration where we adjust up all these values and credit the treasury?The text was updated successfully, but these errors were encountered: