Skip to content

Conversation

@sstanculeanu
Copy link
Collaborator

Reasoning behind the pull request

  • some transactions might come from direct send, which means they will not be available on all nodes

Proposed changes

  • store the transactions received via direct send in a new cache
  • when proposing a header, if there are some porposed transactions received via direct send, broadcast them on the network

Testing procedure

  • with feat branch + specific binary to allow direct send

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

@codecov
Copy link

codecov bot commented Dec 10, 2025

Codecov Report

❌ Patch coverage is 76.72414% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.62%. Comparing base (a872d2b) to head (97ace4c).
⚠️ Report is 1 commits behind head on feat/supernova-async-exec.

Files with missing lines Patch % Lines
process/coordinator/process.go 65.11% 14 Missing and 1 partial ⚠️
update/factory/fullSyncInterceptors.go 0.00% 9 Missing ⚠️
consensus/spos/bls/v2/subroundBlock.go 75.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@                      Coverage Diff                      @@
##           feat/supernova-async-exec    #7527      +/-   ##
=============================================================
+ Coverage                      77.61%   77.62%   +0.01%     
=============================================================
  Files                            874      874              
  Lines                         119995   120066      +71     
=============================================================
+ Hits                           93131    93199      +68     
+ Misses                         20762    20756       -6     
- Partials                        6102     6111       +9     

☔ 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.

@sstanculeanu sstanculeanu marked this pull request as ready for review December 10, 2025 14:40
@sstanculeanu sstanculeanu changed the base branch from feat/supernova-async-exec to fixes-async-exec December 12, 2025 19:17
@sstanculeanu sstanculeanu changed the base branch from fixes-async-exec to fix-bootstrap-meta December 15, 2025 14:39
Base automatically changed from fix-bootstrap-meta to fixes-async-exec December 16, 2025 09:33
return true
}

func (sr *subroundBlock) sendDirectSentTransactions(
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need this kind of feature ? The answer is probably yes, as this open up possibilities of private pools, and different mechanics for that.

I wonder whether there is a moment, earlier than this, in which the broadcasting can happen.


// Save will save the received data into the cacher
func (txip *TxInterceptorProcessor) Save(data process.InterceptedData, peerOriginator core.PeerID, _ string) (bool, error) {
func (txip *TxInterceptorProcessor) Save(data process.InterceptedData, peerOriginator core.PeerID, _ string, broadcastMethod p2p.BroadcastMethod) (bool, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can't you find some better method on doing this. Like having broadcast method pushed on interceptor.save does not look good.

Also, we have peerOriginator which is used only for printing out the trace.

Base automatically changed from fixes-async-exec to feat/supernova-async-exec December 18, 2025 10:30
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