From 389f4a0d35a59d4224f018e94014942b26bf5ebe Mon Sep 17 00:00:00 2001 From: Neotamandua <107320179+Neotamandua@users.noreply.github.com> Date: Tue, 12 Nov 2024 12:48:29 +0200 Subject: [PATCH] rusk: adjust to name changes - Fix some comments --- rusk/src/lib/http/chain/graphql/archive/events.rs | 9 ++++++--- rusk/src/lib/node/rusk.rs | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/rusk/src/lib/http/chain/graphql/archive/events.rs b/rusk/src/lib/http/chain/graphql/archive/events.rs index c7902b8c94..6323c1f26a 100644 --- a/rusk/src/lib/http/chain/graphql/archive/events.rs +++ b/rusk/src/lib/http/chain/graphql/archive/events.rs @@ -23,9 +23,12 @@ pub async fn block_events_by_height( FieldError::new(format!("Cannot fetch events: {}", e)) })?; } else { - events = archive.fetch_json_vm_events(height).await.map_err(|e| { - FieldError::new(format!("Cannot fetch events: {}", e)) - })?; + events = archive + .fetch_json_vm_events_by_blk_height(height) + .await + .map_err(|e| { + FieldError::new(format!("Cannot fetch events: {}", e)) + })?; } Ok(Some(BlockEvents(serde_json::from_str(&events)?))) diff --git a/rusk/src/lib/node/rusk.rs b/rusk/src/lib/node/rusk.rs index 177bc5b753..99173c6af8 100644 --- a/rusk/src/lib/node/rusk.rs +++ b/rusk/src/lib/node/rusk.rs @@ -332,7 +332,7 @@ impl Rusk { self.set_current_commit(session.commit()?); - // Sent events to archivist + // Sent all events from this block to the archivist #[cfg(feature = "archive")] { let _ = self.archive_sender.try_send(ArchivalData::ArchivedEvents( @@ -347,7 +347,7 @@ impl Rusk { if event.event.target.0 == STAKE_CONTRACT { stake_events.push(event.event.clone()); } - // Send VN event to RUES + // Send VM event to RUES let event = RuesEvent::from(event); let _ = self.event_sender.send(event); }