-
Notifications
You must be signed in to change notification settings - Fork 2
Extended execute_input method #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
crates/core/src/driver/mod.rs
Outdated
| } | ||
| } | ||
|
|
||
| pub fn print_diff_mode(label: &str, diff: &DiffMode) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those should emit trace logs instead of println! to the console.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed in the new revision
crates/core/src/driver/mod.rs
Outdated
| if leader_diff == follower_diff { | ||
| log::info!("State diffs match between leader and follower."); | ||
| } else { | ||
| log::warn!("State diffs mismatch between leader and follower."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| log::warn!("State diffs mismatch between leader and follower."); | |
| log::debug!("State diffs mismatch between leader and follower."); |
This is expected and not indicating a problem per se.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right
crates/core/src/driver/mod.rs
Outdated
| follower_state.execute_input(input, self.follower_node)?; | ||
|
|
||
| if leader_diff == follower_diff { | ||
| log::info!("State diffs match between leader and follower."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| log::info!("State diffs match between leader and follower."); | |
| log::debug!("State diffs match between leader and follower."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed in the new revision
crates/core/src/driver/mod.rs
Outdated
| //node.trace_transaction(receipt) | ||
| todo!() | ||
|
|
||
| log::debug!("Transaction receipt: {:?}", receipt); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| log::debug!("Transaction receipt: {:?}", receipt); | |
| log::trace!("Transaction receipt: {:?}", receipt); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed in the new revision
crates/core/src/driver/mod.rs
Outdated
|
|
||
| let trace = node.trace_transaction(receipt.clone())?; | ||
|
|
||
| log::debug!("Trace result: {:?}", trace); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| log::debug!("Trace result: {:?}", trace); | |
| log::trace!("Trace result: {:?}", trace); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed in the new revision
Extended the execute method for the Nodes, in order to be able to extract the DiffMode and the TransactionTrace.
This pr is part of this: #7