blocks: Fetch chainHead header

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2022-11-30 11:04:43 +00:00
parent 6a5cb229af
commit 9ef0a70742
3 changed files with 47 additions and 2 deletions
@@ -34,6 +34,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let body = event.body().await?;
println!("[hash={:?}] body={:?}", event.hash(), body);
let header = event.header().await?;
println!("[hash={:?}] header={:?}", event.hash(), header);
}
// Subscribe to the `chainHead_follow` method.