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): reduce output-only messaging,fix jmt error #1155

Merged
merged 10 commits into from
Sep 24, 2024

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Sep 18, 2024

Description

Output only committees do not send LocalPrepare
Always use parent block ID to fetch JMT pending state.
Simplify evidence update apply to transaction pool record
Improve performance of missing transaction processing
Fix leader failure
Reduce/simplify prepare phase evidence
Avoid block propose delay when changing epochs

Motivation and Context

Output-only shard groups do not need to send prepare-phase cross-shard exchanges as they don't involve any inputs. This PR removes this pledging for output only nodes.

The previous pending JMT diffs query used the justify block_id. However, if the justify != parent, the JMT should include pending state for the parent since state changes will still be committed.

Fixes #1154

How Has This Been Tested?

Manually tariswap test and existing tests

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

Bug fixes

Breaking Changes

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

Copy link

github-actions bot commented Sep 18, 2024

Test Results (CI)

567 tests  +1   567 ✅ +1   1h 39m 3s ⏱️ - 1h 22m 48s
 62 suites +1     0 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit 3b00480. ± Comparison against base commit 70fcc69.

♻️ This comment has been updated with latest results.

@sdbondi sdbondi merged commit 49c82f7 into tari-project:development Sep 24, 2024
12 checks passed
@sdbondi sdbondi deleted the conseusus-fixes branch September 24, 2024 06:09
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.

consensus: all transactions from missing transaction response should be processed in a single db transaction
2 participants