Skip to content

sae: Introduce cross-chain tx gossip#5408

Open
StephenButtolph wants to merge 12 commits into
StephenButtolph/minimal-hookfrom
StephenButtolph/sae-gossip
Open

sae: Introduce cross-chain tx gossip#5408
StephenButtolph wants to merge 12 commits into
StephenButtolph/minimal-hookfrom
StephenButtolph/sae-gossip

Conversation

@StephenButtolph
Copy link
Copy Markdown
Contributor

@StephenButtolph StephenButtolph commented May 20, 2026

Why this should be merged

This PR factors out cross-chain tx gossip from the SAE PoC #5303.

How this works

This PR implements the gossip system, to enable pushing/pulling transactions to/from peers. Additionally, it marks transactions sent over the RPC as push-able.

Rather than exposing addition exported functions from the txpool and tx packages, this PR implemented minimal unexported wrappers.

Most other VMs will re-inject transactions included in a rejected block back into the txpool (which was originally in the SAE PoC), but that behavior doesn't really make a ton of sense for SAE. The transactions stay in the txpool until they are executed (or replaced), so we don't need to re-add them back into the txpool during rejection, they shouldn't have been removed yet anyways.

Additionally, as part of testing, I needed to again wire multiple SUTs together for gossip. This was something that was already done in SAE, so I made a shareable helper that both implementations could use.

How this was tested

  • Integration test for pushing transactions.
  • Integration test for pulling transactions.

Need to be documented in RELEASES.md?

No

@StephenButtolph StephenButtolph force-pushed the StephenButtolph/sae-gossip branch from 06e0c94 to 096e134 Compare May 21, 2026 23:49
@StephenButtolph StephenButtolph self-assigned this May 21, 2026
@StephenButtolph StephenButtolph moved this to In Progress 🏗️ in avalanchego May 21, 2026
@StephenButtolph StephenButtolph marked this pull request as ready for review May 21, 2026 23:52
@StephenButtolph StephenButtolph requested a review from ARR4N as a code owner May 22, 2026 01:03
@StephenButtolph StephenButtolph force-pushed the StephenButtolph/sae-gossip branch from 0903cbc to 6c3969e Compare May 22, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress 🏗️

Development

Successfully merging this pull request may close these issues.

1 participant