Skip to content

Commit

Permalink
Governance: Increase outstanding proposals per user to 10 (solana-lab…
Browse files Browse the repository at this point in the history
…s#2429)

increase outstanding proposals per user to 10
  • Loading branch information
mschneider authored Sep 21, 2021
1 parent f93450c commit 4d9c816
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Anchor.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
anchor_version = "0.13.2"
anchor_version = "0.16.1"
solana_version = "1.7.11"

[workspace]
members = ["governance/program"]
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion governance/program/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spl-governance"
version = "1.1.0"
version = "1.1.1"
description = "Solana Program Library Governance Program"
authors = ["Solana Maintainers <[email protected]>"]
repository = "https://github.com/solana-labs/solana-program-library"
Expand Down
2 changes: 1 addition & 1 deletion governance/program/src/state/token_owner_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl TokenOwnerRecord {

// The number of outstanding proposals is currently restricted to 1
// If there is a need to change it in the future then it should be added to realm or governance config
if self.outstanding_proposal_count > 0 {
if self.outstanding_proposal_count >= 10 {
return Err(GovernanceError::TooManyOutstandingProposals.into());
}

Expand Down

0 comments on commit 4d9c816

Please sign in to comment.