Skip to content

Commit

Permalink
Filter out actions where block_id is null
Browse files Browse the repository at this point in the history
  • Loading branch information
tizoc committed Jun 13, 2021
1 parent 1ebc162 commit 4a73f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/src/services/context.rs
Expand Up @@ -133,7 +133,7 @@ pub(crate) fn make_context_stats() -> Result<ContextStats, failure::Error> {
}

fn make_context_stats_impl(sql: &Connection) -> Result<ContextStats, failure::Error> {
let mut stmt = sql.prepare("SELECT name, key_root, tezedge_time FROM actions;")?;
let mut stmt = sql.prepare("SELECT name, key_root, tezedge_time FROM actions WHERE block_id IS NOT NULL;")?;

let mut rows = stmt.query([])?;

Expand Down

0 comments on commit 4a73f52

Please sign in to comment.