Skip to content
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

fix: vote reject when wasm panics #171

Merged

Conversation

stringhandler
Copy link
Contributor

Description

When the WASM panics or execution fails, vote as reject instead of exiting

Motivation and Context

Some old WASMs no longer work after recent commits. Invoking them causes the hotstuff waiter to exit instead of voting as a reject

How Has This Been Tested?

Manually

@@ -2,7 +2,8 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="icon" href="data:;base64,=">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removes the log in the console

@@ -117,7 +116,7 @@ impl BaseNodeClient for GrpcBaseNodeClient {
});
},
Ok(None) => {
info!(target: LOG_TARGET, "No new validator nodes for this epoch");
trace!(target: LOG_TARGET, "No new validator nodes for this epoch");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removes an extra log in the console

@sdbondi
Copy link
Member

sdbondi commented Nov 2, 2022

utACK

@stringhandler stringhandler merged commit d380ba8 into tari-project:development Nov 2, 2022
sdbondi added a commit to sdbondi/tari-dan that referenced this pull request Nov 10, 2022
* development:
  fix(integration_test): cucumber-rs improvements (tari-project#177)
  feat: add sorting to recent TX in webgui (tari-project#192)
  feat: add templates to web gui (tari-project#190)
  fix: remove generic from bucket (tari-project#185)
  fix: add committee size constant, to remove duplicate code (see tari-project#174) (tari-project#187)
  fix: compile_template outputs compile failure to stderr (tari-project#186)
  feat: state sync on epoch change (see tari-project#154) (tari-project#166)
  fix: check pledges against changes being made (tari-project#181)
  feat: return QC to client for submit-transaction calls (tari-project#172)
  fix: vote reject when wasm panics (tari-project#171)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants