Unverified Commit ccfd5b91 authored by Shawn Tabrizi's avatar Shawn Tabrizi Committed by GitHub
Browse files

Companion for 9619 (Private Events) (#3712)

* update runtime api

* use storage_prefix

* update read_events_no_consensus

* update Substrate

Co-authored-by: parity-processbot <>
parent 732348c0
Pipeline #154391 passed with stages
in 49 minutes
This diff is collapsed.
......@@ -289,7 +289,7 @@ where
{
use inclusion::Event as RawEvent;
<frame_system::Pallet<T>>::events()
<frame_system::Pallet<T>>::read_events_no_consensus()
.into_iter()
.filter_map(|record| extract_event(record.event))
.map(|event| match event {
......
......@@ -148,7 +148,7 @@ macro_rules! monitor_cmd_for { ($runtime:tt) => { paste::paste! {
TransactionStatus::Ready | TransactionStatus::Broadcast(_) | TransactionStatus::Future => continue,
TransactionStatus::InBlock(hash) => {
log::info!(target: LOG_TARGET, "included at {:?}", hash);
let key = sp_core::storage::StorageKey(frame_system::Events::<Runtime>::hashed_key().to_vec());
let key = frame_support::storage::storage_prefix(b"System", b"Events");
let events =get_storage::<
Vec<frame_system::EventRecord<Event, <Block as BlockT>::Hash>>
>(client, params!{ key, hash }).await?.unwrap_or_default();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment