Skip to content

Add support for package relay#573

Merged
rustaceanrob merged 2 commits into2140-dev:masterfrom
rustaceanrob:26-4-20-pkg-rly
Apr 21, 2026
Merged

Add support for package relay#573
rustaceanrob merged 2 commits into2140-dev:masterfrom
rustaceanrob:26-4-20-pkg-rly

Conversation

@rustaceanrob
Copy link
Copy Markdown
Collaborator

@rustaceanrob rustaceanrob commented Apr 20, 2026

Closes #532

Adds type-safe support for relaying packages.

Currently, the only supported package type is 1P1C, so this leveraged when sharing the transactions. First the child transaction is shared by Wtxid, which includes inputs that will be unknown to the receiver. The parent is never shared explicitly, instead we expect the receiver should request the inputs by their previous outpoint. The outpoint uses the legacy Txid, so parent transaction data is stored in a second map, indexed on Txid. Packages are confirmed only once the parent has been shared. In the case of a single transaction, the flow of data does not change.

@rustaceanrob rustaceanrob force-pushed the 26-4-20-pkg-rly branch 3 times, most recently from a718cc3 to bf1f925 Compare April 20, 2026 14:14
@rustaceanrob
Copy link
Copy Markdown
Collaborator Author

Tested this works with a CPFP script.

@rustaceanrob rustaceanrob merged commit 3704bda into 2140-dev:master Apr 21, 2026
10 checks passed
@rustaceanrob rustaceanrob deleted the 26-4-20-pkg-rly branch April 21, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1P1C broadcast

1 participant