Repository navigation
itest: cover the embedded engine against tapd - #198
Merged
Merged
Conversation
darioAnongba
force-pushed
the
darioAnongba/embedded-engine-itest
branch
2 times, most recently
from
November 13, 2026 13:06
9a80be9 to
e18e9b6
Compare
darioAnongba
force-pushed
the
darioAnongba/embedded-engine-itest
branch
from
November 13, 2026 13:55
e18e9b6 to
aef70f4
Compare
darioAnongba
force-pushed
the
darioAnongba/embedded-engine
branch
from
November 13, 2026 14:28
d2c0af2 to
4b741fd
Compare
darioAnongba
force-pushed
the
darioAnongba/embedded-engine-itest
branch
from
November 13, 2026 14:31
aef70f4 to
28f462f
Compare
darioAnongba
force-pushed
the
darioAnongba/embedded-engine
branch
2 times, most recently
from
November 13, 2026 16:34
f2aee67 to
a927e53
Compare
darioAnongba
force-pushed
the
darioAnongba/embedded-engine-itest
branch
from
November 13, 2026 17:03
28f462f to
4d63f58
Compare
darioAnongba
force-pushed
the
darioAnongba/embedded-engine
branch
from
November 13, 2026 17:23
a927e53 to
2c48bcd
Compare
darioAnongba
force-pushed
the
darioAnongba/embedded-engine-itest
branch
from
November 13, 2026 17:24
4d63f58 to
33f920b
Compare
fundLndInput pays a BIP-86 output to a key of lnd-alice and returns the PSBT fields lnd needs to sign it. The lnd connection moves into lndWalletKit, which can also sign a PSBT without finalizing it, for transactions lnd is not the last signer of.
NewEmbeddedNode starts an embedded.Client inside the test process, with a memory store, a key ring over a BIP-32 seed and a chain source over the bitcoind RPC. The chain source reports a re-org when the confirming block of a transaction leaves the best chain.
The engine receives an asset from Alice's tapd and sends it on to Bob's tapd in two transfers that lnd pays for, with an ungrouped and a grouped asset. A second case takes a transfer through a re-org of its confirming block.
Each case runs with Alice's tapd as the sender, and with an embedded engine that receives the asset from her first. The received-asset case stays tapd-only, since the engine has no address receive.
darioAnongba
force-pushed
the
darioAnongba/embedded-engine-itest
branch
from
November 13, 2026 18:50
33f920b to
e51ed20
Compare
darioAnongba
marked this pull request as ready for review
November 13, 2026 18:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These cases run the embedded engine against the itest stack, with tapd on the other side of every transfer and lnd paying for the anchor transactions.
NewEmbeddedNodestarts anembedded.Clientinside the test process, with a memory store, a key ring over a BIP-32 seed and a chain source over the bitcoind RPC.SendToEmbeddedmoves an asset from Alice's tapd into it. The cases read its holdings withWallet.GetBalance.TestEmbeddedTransferreceives an asset from Alice's tapd and sends it on to Bob's tapd in two transfers, with an ungrouped and a grouped asset.TestEmbeddedReorgtakes a transfer through a re-org of its confirming block.