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

refactor(consensus): clean up inbound message processing #892

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Jan 12, 2024

Description

Move HS message receivers into worker, pass messages to the OnInboundMessage handler. This checks proposals for missing transactions and parks them if necessary. New transaction notifications are sent to the OnInboundMessage handler to check if any proposals can be unparked. Once unparked, they are added to the "next message buffer". The
message buffer is polled (cancel safe) in the consensus worker tokio select loop.

Motivation and Context

Clean up after fix in #889

How Has This Been Tested?

Running stress test from PR #880

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

Consensus should still work as before

Breaking Changes

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

@sdbondi sdbondi force-pushed the consensus-clean-up-inbound-messaging branch from 62ab3b5 to 74d4e3e Compare January 12, 2024 12:54
Copy link

Test Results (CI)

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

Results for commit 74d4e3e. ± Comparison against base commit 63a1563.

Copy link
Collaborator

@mrnaveira mrnaveira 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 Jan 16, 2024
Merged via the queue into tari-project:development with commit 5071cba Jan 16, 2024
10 checks passed
@sdbondi sdbondi deleted the consensus-clean-up-inbound-messaging branch January 16, 2024 10:15
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