Skip to content

itest: cover the embedded engine against tapd - #198

Merged
darioAnongba merged 4 commits into
mainfrom
darioAnongba/embedded-engine-itest
Nov 13, 2026
Merged

darioAnongba merged 4 commits into
mainfrom
darioAnongba/embedded-engine-itest

Conversation

@darioAnongba

@darioAnongba darioAnongba commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

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.

  • 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. SendToEmbedded moves an asset from Alice's tapd into it. The cases read its holdings with Wallet.GetBalance.
  • TestEmbeddedTransfer receives an asset from Alice's tapd and sends it on to Bob's tapd in two transfers, with an ungrouped and a grouped asset. TestEmbeddedReorg takes a transfer through a re-org of its confirming block.
  • The custom-anchor cases run with Alice's tapd as the sender, and again with an engine that receives the asset from her first. The received-asset case stays tapd-only, since the engine has no address receive.

@darioAnongba
darioAnongba force-pushed the darioAnongba/embedded-engine-itest branch 2 times, most recently from 9a80be9 to e18e9b6 Compare November 13, 2026 13:06
@darioAnongba
darioAnongba force-pushed the darioAnongba/embedded-engine-itest branch from e18e9b6 to aef70f4 Compare November 13, 2026 13:55
@darioAnongba
darioAnongba force-pushed the darioAnongba/embedded-engine branch from d2c0af2 to 4b741fd Compare November 13, 2026 14:28
@darioAnongba
darioAnongba force-pushed the darioAnongba/embedded-engine-itest branch from aef70f4 to 28f462f Compare November 13, 2026 14:31
@darioAnongba
darioAnongba force-pushed the darioAnongba/embedded-engine branch 2 times, most recently from f2aee67 to a927e53 Compare November 13, 2026 16:34
@darioAnongba
darioAnongba force-pushed the darioAnongba/embedded-engine-itest branch from 28f462f to 4d63f58 Compare November 13, 2026 17:03
@darioAnongba
darioAnongba force-pushed the darioAnongba/embedded-engine branch from a927e53 to 2c48bcd Compare November 13, 2026 17:23
@darioAnongba
darioAnongba force-pushed the darioAnongba/embedded-engine-itest branch from 4d63f58 to 33f920b Compare November 13, 2026 17:24
Base automatically changed from darioAnongba/embedded-engine to main November 13, 2026 18:48
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
darioAnongba force-pushed the darioAnongba/embedded-engine-itest branch from 33f920b to e51ed20 Compare November 13, 2026 18:50
@darioAnongba
darioAnongba marked this pull request as ready for review November 13, 2026 18:54
@darioAnongba
darioAnongba merged commit 4752d3c into main Nov 13, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from 🆕 New to ✅ Done in Taproot-Assets Project Board Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

1 participant