Curators can currently prevent governance from closing bounties by ensuring that there are active child bounties:
|
// Ensure no active child bounties before processing the call. |
|
ensure!( |
|
T::ChildBountyManager::child_bounties_count(bounty_id) == 0, |
|
Error::<T, I>::HasActiveChildBounty |
|
); |
We close this loophole.