Skip to content
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

Added "is RPL Locking Allowed" check to every PDAOCanProposeXYZ function #506

Merged
merged 9 commits into from
Apr 22, 2024

Conversation

thomaspanf
Copy link
Member

@thomaspanf thomaspanf commented Apr 21, 2024

PDAO functions edited:

  • Propose Setting
  • Propose Sec Council Invite
  • Propose Sec Council Kick
  • Propose One Time Spend
  • Propose Rewards Percentages
  • Propose Recurring Spend
  • Propose Recurring Spend Update
  • Propose Sec Council Update

Haven't tested these 3 yet:

- Propose Sec Council Kick
- Propose Recurring Spend Update
- Propose Sec Council Update

fixed usage of goroutines per Fornax's suggestion!

var wg errgroup.Group

// Get is RPL locking allowed
wg.Go(func() error {
Copy link
Member

Choose a reason for hiding this comment

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

You usually want to use goroutines when starting multiple queries at the same time. If you have only one query then you don't need to use threads.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the tip! I've fixed the usage of goroutines.

@0xfornax 0xfornax merged commit 2b2a1fb into rocket-pool:houston Apr 22, 2024
3 checks passed
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.

2 participants