Make System Events Private from the Runtime (#9619)

* make events private

* "i know what i am doing"

* feedback
This commit is contained in:
Shawn Tabrizi authored and GitHub committed 2021-08-26 13:55:41 +00:00
1 parent 77489c3107
commit 2c91f3a464
2 files changed
+26 -3

No files matched your search

@@ -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);