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(consensus)!: state change on foreign proposals in local blocks #1130

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Sep 3, 2024

Description

Propose foreign proposals before associated transaction pending state changes occur.
Evidence structure now holds a QC ID for prepare and accept phases for each substate.
Indexer will submit transactions to two validators instead of just one.
Remove unused should_propagate option from the mempool.

Motivation and Context

Previously foreign proposals would appear after the transaction that they justify.
Foreign proposals should be proposed and the transaction stage transactions included in the change set for the block.

How Has This Been Tested?

Existing tests, manually

What process can a PR reviewer use to test or verify this change?

Observe blocks contain foreign proposals that affect LocalPrepare and LocalAccept pledging at or before the actual stage transaction is proposed.

Breaking Changes

  • None
  • Requires data directory to be deleted
  • Other - Please specify

Copy link

github-actions bot commented Sep 3, 2024

Test Results (CI)

553 tests  ±0   552 ✅ ±0   1h 49m 10s ⏱️ - 28m 52s
 58 suites ±0     0 💤 ±0 
  2 files   ±0     1 ❌ ±0 

For more details on these failures, see this check.

Results for commit 66ff95e. ± Comparison against base commit b3f1507.

This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
tari_dan_storage ‑ consensus_models::lock_intent::export_bindings_substaterequirementlockintent
tari_dan_storage ‑ consensus_models::command::tests::ordering

♻️ This comment has been updated with latest results.

@sdbondi sdbondi force-pushed the consensus-foreign-proposal-counts branch from 70ef642 to 66ff95e Compare September 3, 2024 11:43
Copy link
Contributor

@therealdannzor therealdannzor left a comment

Choose a reason for hiding this comment

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

LGTM

@sdbondi sdbondi added this pull request to the merge queue Sep 4, 2024
Merged via the queue into tari-project:development with commit 9b6b704 Sep 4, 2024
11 checks passed
@sdbondi sdbondi deleted the consensus-foreign-proposal-counts branch September 4, 2024 08:36
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