diff --git a/.changelog/unreleased/improvements/4209-increase-max-pgf-actions.md b/.changelog/unreleased/improvements/4209-increase-max-pgf-actions.md new file mode 100644 index 0000000000..7861cc1ac5 --- /dev/null +++ b/.changelog/unreleased/improvements/4209-increase-max-pgf-actions.md @@ -0,0 +1,2 @@ +- Increase the allowed number of PGF targets in a single proposal from 20 to + 10,000. ([\#4209](https://github.com/anoma/namada/pull/4209)) \ No newline at end of file diff --git a/crates/governance/src/vp/mod.rs b/crates/governance/src/vp/mod.rs index 45e13a12e1..61ac79ad20 100644 --- a/crates/governance/src/vp/mod.rs +++ b/crates/governance/src/vp/mod.rs @@ -28,7 +28,7 @@ use crate::ProposalVote; pub const ADDRESS: Address = Address::Internal(InternalAddress::Governance); /// The maximum number of item in a pgf proposal -pub const MAX_PGF_ACTIONS: usize = 20; +pub const MAX_PGF_ACTIONS: usize = 10_000; #[allow(missing_docs)] #[derive(Error, Debug)] @@ -505,8 +505,9 @@ where if !is_total_fundings_valid { return Err(Error::new_alloc(format!( - "Maximum number of funding actions \ - ({MAX_PGF_ACTIONS}) exceeded ({})", + "Maximum number of funding targets \ + ({MAX_PGF_ACTIONS}) exceeded by the provided amount \ + of ({})", fundings.len() ))); }