Skip to content

Comments

feat: Add scaffolding for proposer sending messages to P2P#2856

Merged
rodrodros merged 1 commit intomainfrom
dat/dispatcher
Jul 7, 2025
Merged

feat: Add scaffolding for proposer sending messages to P2P#2856
rodrodros merged 1 commit intomainfrom
dat/dispatcher

Conversation

@infrmtcs
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented May 27, 2025

Codecov Report

Attention: Patch coverage is 0% with 210 lines in your changes missing coverage. Please review.

Project coverage is 71.80%. Comparing base (d96d62b) to head (9710572).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
consensus/p2p/proposer/proposer_dispatcher.go 0.00% 126 Missing ⚠️
consensus/p2p/proposer/proposer_adapter.go 0.00% 44 Missing ⚠️
consensus/p2p/proposer/proposal_broadcaster.go 0.00% 40 Missing ⚠️

❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2856      +/-   ##
==========================================
- Coverage   72.29%   71.80%   -0.49%     
==========================================
  Files         263      266       +3     
  Lines       28572    28782     +210     
==========================================
+ Hits        20656    20668      +12     
- Misses       6520     6723     +203     
+ Partials     1396     1391       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@infrmtcs infrmtcs requested review from rianhughes and rodrodros May 27, 2025 12:19
@infrmtcs infrmtcs force-pushed the dat/dispatcher branch 2 times, most recently from 422d104 to 471fc37 Compare May 28, 2025 02:40
@infrmtcs infrmtcs changed the base branch from main to dat/value June 18, 2025 09:10
@infrmtcs infrmtcs linked an issue Jun 18, 2025 that may be closed by this pull request
Base automatically changed from dat/value to main June 18, 2025 14:05
@infrmtcs infrmtcs changed the base branch from main to dat/adapters June 18, 2025 14:09
@infrmtcs infrmtcs force-pushed the dat/adapters branch 2 times, most recently from 43642b1 to 3ac714f Compare June 20, 2025 08:27
Base automatically changed from dat/adapters to main June 23, 2025 23:35
@infrmtcs infrmtcs changed the base branch from main to dat/store June 24, 2025 04:54
@infrmtcs infrmtcs force-pushed the dat/store branch 5 times, most recently from 00a82a7 to 2dd2c19 Compare June 24, 2025 11:19
Base automatically changed from dat/store to main June 25, 2025 12:45
@infrmtcs infrmtcs force-pushed the dat/dispatcher branch 2 times, most recently from 6de7e25 to 42fe1fb Compare June 30, 2025 12:39
Comment on lines +66 to +70
for txBatch := range slices.Chunk(txStream, txBatchSize) {
if !yield(d.fromTransactions(txBatch)) {
return
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

At this point we have built the entire block right? So why bother breaking the txns into chunks?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We may want to send out transactions in chunk even if we have everything. Imagine the case where there are 1000 transactions, we want to gradually broadcast them instead of building a big message of 1k transactions and then the receiver has to process 1k transactions at a time.

@rodrodros rodrodros merged commit 5c2e570 into main Jul 7, 2025
19 of 20 checks passed
@rodrodros rodrodros deleted the dat/dispatcher branch July 7, 2025 13:20
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.

[Tendermint] Connect P2P and Builder Logic - Proposer

3 participants