s/id/hash in block events

This commit is contained in:
Tyera Eulberg 2019-03-06 09:27:30 -07:00 committed by Grimes
parent bd39ab9365
commit 789a9df9f6
1 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ where
blockhash: Hash,
) -> Result<()> {
let payload = format!(
r#"{{"dt":"{}","t":"block","s":{},"h":{},"l":"{:?}","id":"{:?}"}}"#,
r#"{{"dt":"{}","t":"block","s":{},"h":{},"l":"{:?}","hash":"{:?}"}}"#,
Utc::now().to_rfc3339_opts(SecondsFormat::Nanos, true),
slot,
tick_height,
@ -209,8 +209,8 @@ mod test {
let item_type = json["t"].as_str().unwrap();
match item_type {
"block" => {
let id = json["id"].to_string();
matched_blocks.insert(id);
let hash = json["hash"].to_string();
matched_blocks.insert(hash);
}
"entry" => {