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): dont send dummy blocks on sync #886

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Jan 11, 2024

Description

Excludes dummy blocks from catch-up sync
Excludes dummy blocks from RPC sync
Rename tari_comms_rpc_state_sync to tari_rpc_state_sync
Removed commented-out and dead code

Motivation and Context

The is_dummy flag is not sent on catch-up, which leads to a "missing proposal signature" error, since summy blocks cannot be signed. Dummy blocks are calculated as needed by the proposal handler so do not need to be sent.

When testing manually this works, however, we sometimes run into #887

How Has This Been Tested?

Manually, synced chain with dummy blocks and checked that dummy blocks created

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

4 VN committee, shut down one node and delete its data, wait for leader failures (to create some dummy blocks), restart node, and check that it syncs

Breaking Changes

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

Copy link

github-actions bot commented Jan 11, 2024

Test Results (CI)

194 tests  ±0   194 ✅ ±0   1h 27m 1s ⏱️ - 15m 48s
 52 suites ±0     0 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit bf225dc. ± Comparison against base commit 63a1563.

♻️ This comment has been updated with latest results.

@sdbondi sdbondi force-pushed the consensus-sync-no-dummy-blocks branch from ac444e2 to 5f84061 Compare January 11, 2024 11:57
@sdbondi sdbondi force-pushed the consensus-sync-no-dummy-blocks branch from 5f84061 to 659a71c Compare January 11, 2024 11:58
@sdbondi sdbondi changed the title fix(consensus): dont send dummy blocks on catch up fix(consensus): dont send dummy blocks on sync Jan 11, 2024
@sdbondi sdbondi force-pushed the consensus-sync-no-dummy-blocks branch from 659a71c to 673b5ae Compare January 11, 2024 13:06
Copy link
Contributor

@Cifko Cifko left a comment

Choose a reason for hiding this comment

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

utACK

@sdbondi sdbondi added this pull request to the merge queue Jan 16, 2024
Merged via the queue into tari-project:development with commit 347846f Jan 16, 2024
10 checks passed
@sdbondi sdbondi deleted the consensus-sync-no-dummy-blocks branch January 16, 2024 12:51
@sdbondi sdbondi mentioned this pull request Jan 19, 2024
3 tasks
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