mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-21 22:41:02 +00:00
pallet-democracy: Do not request the proposal when scheduling (#13827)
The requesting of the proposal is actually done now in `pallet-scheduler`. Fixes: https://github.com/paritytech/substrate/issues/13534
This commit is contained in:
@@ -1606,11 +1606,6 @@ impl<T: Config> Pallet<T> {
|
||||
|
||||
if approved {
|
||||
Self::deposit_event(Event::<T>::Passed { ref_index: index });
|
||||
// Actually `hold` the proposal now since we didn't hold it when it came in via the
|
||||
// submit extrinsic and we now know that it will be needed. This will be reversed by
|
||||
// Scheduler pallet once it is executed which assumes that we will already have placed
|
||||
// a `hold` on it.
|
||||
T::Preimages::hold(&status.proposal);
|
||||
|
||||
// Earliest it can be scheduled for is next block.
|
||||
let when = now.saturating_add(status.delay.max(One::one()));
|
||||
|
||||
Reference in New Issue
Block a user