-
Notifications
You must be signed in to change notification settings - Fork 116
Introduce video state bloat bond #3833
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
Introduce video state bloat bond #3833
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
| // == MUTATION SAFE == | ||
| // | ||
|
|
||
| let _ = Balances::<T>::slash(&sender, video_state_bloat_bond); |
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.
Do we not put the bloat bond in some treasury account or something? What did we do for bounty pallet bloat bonds, or for storage?
dobertRowneySr
left a comment
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.
Same cosmetics as the channel bloat bond PR, otherwise LGTM
| increase_account_balance_helper(DEFAULT_MEMBER_ACCOUNT_ID, 11); | ||
| create_default_member_owned_channel(); | ||
|
|
||
| let video_state_bloat_bond = 1; |
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.
why not use their DEFAULT-* counterparts?
dobertRowneySr
left a comment
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.
LGTM
054225d to
0e07683
Compare
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.
- build node & runtime ✔️
- types and metadata ✔️
- cargo test ✔️
- there are some problem with benchmarks:
---- tests::council_discard_remaining_rewards_on_depose stdout ----
thread 'tests::council_discard_remaining_rewards_on_depose' panicked at 'attempt to subtract with overflow', runtime-modules/council/src/mock.rs:1496:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- tests::council_many_cycle_rewards stdout ----
thread 'tests::council_many_cycle_rewards' panicked at 'attempt to subtract with overflow', runtime-modules/council/src/mock.rs:1496:17
---- tests::council_rewards_are_paid stdout ----
thread 'tests::council_rewards_are_paid' panicked at 'attempt to subtract with overflow', runtime-modules/council/src/mock.rs:1496:17
---- tests::vote_stake_locks_after_new_election_starts stdout ----
thread 'tests::vote_stake_locks_after_new_election_starts' panicked at 'attempt to subtract with overflow', runtime-modules/council/src/mock.rs:1496:17
These should be fixed see mnaamani#13
0e07683 to
7e8982d
Compare
types generation types generation and channel duplication fix
7e8982d to
375f94f
Compare
Merge after #3821
When creating a video, the sender gets slashed video state bloat bond
When deleting a channel sender gets paid the video state bloat bond amount
Uses the funds_needed_for_upload implemented here #3693 to verify the funds needed before charging the video state bloat bond
┆Issue is synchronized with this Asana task by Unito