Skip to content

Commit

Permalink
rusk: adjust to name changes
Browse files Browse the repository at this point in the history
- Fix some comments
  • Loading branch information
Neotamandua committed Nov 12, 2024
1 parent a2f00bf commit 389f4a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions rusk/src/lib/http/chain/graphql/archive/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?)))
Expand Down
4 changes: 2 additions & 2 deletions rusk/src/lib/node/rusk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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);
}
Expand Down

0 comments on commit 389f4a0

Please sign in to comment.