Skip to content

Conversation

@bkontur
Copy link
Contributor

@bkontur bkontur commented Mar 13, 2025

This PR contains:

  • bump to stable2409-6

TODO:

@bkontur
Copy link
Contributor Author

bkontur commented Mar 14, 2025

/cmd fmt

@bkontur bkontur closed this Mar 14, 2025
@bkontur bkontur reopened this Mar 14, 2025
@bkontur
Copy link
Contributor Author

bkontur commented Mar 14, 2025

/cmd fmt

@github-actions
Copy link

Command "fmt" has started 🚀 See logs here

@github-actions
Copy link

Command "fmt" has finished ✅ See logs here

@github-actions
Copy link

Command "fmt" has started 🚀 See logs here

@github-actions
Copy link

Command "fmt" has finished ✅ See logs here

Copy link
Contributor

@claravanstaden claravanstaden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set Electra epochs in the future, until real epoch is announced.

@bkontur
Copy link
Contributor Author

bkontur commented Mar 14, 2025

/cmd fmt

@bkontur bkontur moved this to In Progress in @bkontur's board Mar 14, 2025
@github-actions
Copy link

Command "fmt" has started 🚀 See logs here

@github-actions
Copy link

Command "fmt" has finished ✅ See logs here

Copy link
Contributor

@claravanstaden claravanstaden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bkontur bkontur mentioned this pull request Mar 28, 2025
3 tasks
@bkontur
Copy link
Contributor Author

bkontur commented Mar 28, 2025

* [ ]  confirm that this PR is compatible and doing the same as [Release 1.4.1 #608](https://github.com/polkadot-fellows/runtimes/pull/608) (@Ank4n)

@Ank4n I know that I asked you this before in Element, but could please confirm this?

@Ank4n
Copy link
Contributor

Ank4n commented Mar 31, 2025

* [ ]  confirm that this PR is compatible and doing the same as [Release 1.4.1 #608](https://github.com/polkadot-fellows/runtimes/pull/608) (@Ank4n)

@Ank4n I know that I asked you this before in Element, but could please confirm this?

Yes, verified on version 5.0.1 of pallet-delegated-staking, the staking accounts are hardcoded to be excluded from nomination pools.

Comment on lines +839 to +841
fn filter(who: &AccountId) -> bool {
pallet_nomination_pools::AllPoolMembers::<Runtime>::contains(who)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines +714 to +716
fn filter(who: &AccountId) -> bool {
pallet_nomination_pools::AllPoolMembers::<Runtime>::contains(who)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to write a small test for this ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to write a small test for this ;)

I am checking paritytech/polkadot-sdk@stable2409...bkchr-fix-the-thing and there were several pallet unit tests added:
existing_pool_member_cannot_stake
stakers_cannot_join_pool
restricted_accounts_cannot_join
restricted_accounts_can_only_withdraw
permissionless_withdraw_overstake

What should this small test cover/do? Some pseudo-code is ok:

// prepare account
// create pool
// accounts join the pool 

// <do-something-else>

// check something1 
// check something2

@Ank4n Could you please take care of this? Or at least, write down what needs to be tested, and I can write a test at runtimes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bkchr tests are added (de119a3) by @Ank4n

Copy link
Contributor

@bkchr bkchr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a small test for the staking changes. Should not be that hard.

Comment on lines +714 to +716
fn filter(who: &AccountId) -> bool {
pallet_nomination_pools::AllPoolMembers::<Runtime>::contains(who)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to write a small test for this ;)

CHANGELOG.md Outdated

### Changed

- Apply patch for stable2409-6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the default syntax for these changes.

bkontur and others added 2 commits April 1, 2025 09:34
* add tests to ensure dual stake prevention measures are correctly configured

* stake right amount
Copy link
Contributor

@claravanstaden claravanstaden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@bkontur
Copy link
Contributor Author

bkontur commented Apr 7, 2025

/merge

@fellowship-merge-bot fellowship-merge-bot bot merged commit c10aa17 into polkadot-fellows:main Apr 7, 2025
64 checks passed
@fellowship-merge-bot
Copy link
Contributor

Enabled auto-merge in Pull Request

Available commands
  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

@bkontur bkontur deleted the bko-patch-stable2409 branch April 7, 2025 13:38
pandres95 pushed a commit to pandres95/runtimes that referenced this pull request Apr 7, 2025
* Bump to stable2409-6 (polkadot-fellows#623)

This PR contains:
- bump to stable2409-6

## TODO: 
- [x] fix penpal-runtime compilation
https://github.com/polkadot-fellows/runtimes/actions/runs/13853959747/job/38766523729?pr=623
- [x] check electra setup
- [x] confirm that this PR is compatible and doing the same as
polkadot-fellows#608 (@Ank4n)

---------

Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Clara van Staden <[email protected]>
Co-authored-by: Ankan <[email protected]>

* Format

---------

Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Clara van Staden <[email protected]>
Co-authored-by: Ankan <[email protected]>
@bkontur bkontur moved this from In Progress to Done in @bkontur's board Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants