mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 03:31:05 +00:00
Make System Events Private from the Runtime (#9619)
* make events private * "i know what i am doing" * feedback
This commit is contained in:
@@ -1236,7 +1236,9 @@ impl<T: Config> Pallet<T> {
|
||||
}
|
||||
|
||||
// After election finalization, clear OCW solution storage.
|
||||
if <frame_system::Pallet<T>>::events()
|
||||
//
|
||||
// We can read the events here because offchain worker doesn't affect PoV.
|
||||
if <frame_system::Pallet<T>>::read_events_no_consensus()
|
||||
.into_iter()
|
||||
.filter_map(|event_record| {
|
||||
let local_event = <T as Config>::Event::from(event_record.event);
|
||||
|
||||
Reference in New Issue
Block a user