Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 88f856a

Browse files
committed
add log line
1 parent 725cadf commit 88f856a

File tree

1 file changed

+2
-0
lines changed
  • frame/election-provider-multi-phase/src

1 file changed

+2
-0
lines changed

frame/election-provider-multi-phase/src/signed.rs

+2
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,15 @@ impl<T: Config> Pallet<T> {
111111

112112
// Any unprocessed solution is pointless to even consider. Feasible or malicious,
113113
// they didn't end up being used. Unreserve the bonds.
114+
let discarded = all_submissions.len();
114115
for not_processed in all_submissions {
115116
let SignedSubmission { who, deposit, .. } = not_processed;
116117
let _remaining = T::Currency::unreserve(&who, deposit);
117118
weight = weight.saturating_add(T::DbWeight::get().writes(1));
118119
debug_assert!(_remaining.is_zero());
119120
};
120121

122+
log!(debug, "closed signed phase, found solution? {}, discarded {}", found_solution, discarded);
121123
(found_solution, weight)
122124
}
123125

0 commit comments

Comments
 (0)