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: check pledges against changes being made #181

Merged

Conversation

stringhandler
Copy link
Contributor

Description

Validate the changes made after running the WASM to make sure that all the shards have pledged it correctly.
Also fixes a bug where the DOWN and the UP of a component were not created.

Motivation and Context

This is a critical check that all committees are prepared to make the changes to the involved shards when the data is finally committed.

Note that there are quite a few ugly implementation details here. The substate change map is inelegant by using a match instead of an if because of the inner data in the Substate. There are already a number of changes in this PR and I'm worried that it will cause conflicts with other PRs. I'll return to clean up that code after this and the other changes are merged

How Has This Been Tested?

Manually. Calling the Counter::increase method now creates a DOWN and an UP row in the sqlite db

# Conflicts:
#	clients/validator_node_client/src/types.rs
#	dan_layer/core/src/workers/hotstuff_waiter.rs
@stringhandler stringhandler merged commit bc80aa2 into tari-project:development Nov 3, 2022
@stringhandler stringhandler deleted the st-fix-pledge-check branch November 3, 2022 14:00
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