-
Notifications
You must be signed in to change notification settings - Fork 1.2k
pallet-bounties: allow bounties to never expire #7723
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
52698ec
pallet-bounties: extends update_due infinitly if BountiesUpdatePeriod…
BigTava fa19b53
pallet-bounties: fmt
BigTava 4e49830
pallet-bounties: changes docs for config parameter and adds prdoc
BigTava 08c637d
pallet-bounties: fix benchmarking
BigTava 2478bfc
Merge branch 'master' into tiago-remove-bounties-expiry
BigTava c8cb79e
pallet-child-bounties: fix benchamarking
BigTava 4654163
pallet-child-bounties: move Bounded from lib to benchmarking
BigTava 2e22a58
pallet-bounties: improves prdoc and parameter docs
BigTava 3890ab0
pallet-bounties: refactors prdoc and tests BountyUpdatePeriod set to …
BigTava 91eb76d
docs: provides migration path
BigTava 2ef5617
pallet-bounties: remove debug statements
BigTava 1ee5b56
docs: improves migration path and adds function to reuse update_due c…
BigTava a927617
pallet-bounties: fmt
BigTava cda4673
pallet-bounties: adds docs to calculate_update_due
BigTava 5c18edd
docs: adds API change in migration
BigTava e0600e3
docs: adds sentence on how to migrate to new change and removes migra…
BigTava 133ca5b
pallet-bounties: improves code readability, docs, and add dynamic par…
BigTava 6e42b1e
pallet-child-bounties: improves code readability
BigTava 5ce7249
docs: refactor to describe only the use of `saturating_add` to preven…
BigTava c34e68e
pallet-bounties: refactor to only use `saturating_add` instead of cha…
BigTava a143787
pallet-child-bounties: refactors since BountyUpdatePeriod is no longe…
BigTava 7a9f641
pallet-bounties: handles benchmarking call fail when `BountyUpdatePe…
BigTava e254cec
docs: refactor prdoc
BigTava 1f6b1bb
pallet-bounties: refactor unassign_curator benchmark to always perfor…
BigTava 3bde188
pallet-bounties: defaults to some signed caller if RejectOrigin is un…
BigTava e754423
pallet-bounties: defaults to curator if RejectOrigin is unavailable
BigTava 0b8c2a5
pallet-child-bounties: minor
BigTava File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| title: '[pallet-bounties] Allow bounties to never expire' | ||
| doc: | ||
| - audience: Runtime Dev | ||
| description: | | ||
| Refactored the `update_due` calculation to use `saturating_add`, allowing bounties to remain active | ||
| indefinitely without requiring `extend_bounty_expiry` and preventing automatic curator slashing for | ||
| inactivity. Previously, setting `BountyUpdatePeriod` to a large value, such as `BlockNumber::max_value()`, | ||
| could cause an overflow. | ||
|
|
||
| crates: | ||
| - name: pallet-bounties | ||
| bump: patch | ||
| - name: pallet-child-bounties | ||
| bump: patch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.