Skip to content

Commit

Permalink
Revert "add more debug info"
Browse files Browse the repository at this point in the history
This reverts commit 843d68a.
  • Loading branch information
Jason committed Oct 8, 2024
1 parent cf94f96 commit da25c05
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion crates/specs/src/external_host_call_table/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ impl From<ExternalHostCallSignature> for Signature {

#[derive(Serialize, Deserialize)]
pub struct ExternalHostCallEntry {
pub eid: usize,
pub op: usize,
pub value: u64,
pub is_ret: bool,
Expand Down
8 changes: 3 additions & 5 deletions crates/specs/src/external_host_call_table/table.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
use super::ExternalHostCallEntry;
use crate::etable::EventTableEntry;
use crate::step::StepInfo;

impl TryFrom<&EventTableEntry> for ExternalHostCallEntry {
impl TryFrom<&StepInfo> for ExternalHostCallEntry {
type Error = ();

fn try_from(entry: &EventTableEntry) -> Result<Self, Self::Error> {
match &entry.step_info {
fn try_from(value: &StepInfo) -> Result<Self, Self::Error> {
match value {
StepInfo::ExternalHostCall { op, value, sig, .. } => Ok(ExternalHostCallEntry {
eid: entry.eid as usize,
op: *op,
value: value.unwrap(),
is_ret: sig.is_ret(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl SliceBuilder {
pub(super) fn build(&mut self, logs: Vec<EventTableEntry>) -> Slice {
let external_host_call_table = ExternalHostCallTable::new(
logs.iter()
.filter_map(|entry| ExternalHostCallEntry::try_from(entry).ok())
.filter_map(|entry| ExternalHostCallEntry::try_from(&entry.step_info).ok())
.collect(),
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use std::collections::HashMap;
use std::collections::LinkedList;
use std::rc::Rc;

use log::info;
use log::warn;
use specs::etable::EventTableEntry;
use specs::slice_backend::SliceBackendBuilder;
Expand Down Expand Up @@ -459,8 +458,6 @@ impl<B: SliceBackendBuilder> HostTransaction<B> {
&*self.controller,
);

info!("Slice at {}", checkpoint);

assert!(
checkpoint != self.last_committed_event_cursor,
"failed to select checkpoint"
Expand Down

0 comments on commit da25c05

Please sign in to comment.