itest: run FundPsbt test with imported account

This demonstrates that the "imported" account behaves differently for a
wallet that's watch-only vs. normal. The testTaprootImportTapscriptFullKeyFundPsbt
test case succeeds in a normal run but fails in a remote-signing setup.

For some reason, an imported tapscript address ends up in the "default"
account when remote-signing but in the "imported" account for a normal
wallet.
This commit is contained in:
Oliver Gugger
2025-07-31 15:03:50 +02:00
parent c214575de1
commit cce2df9018
2 changed files with 152 additions and 0 deletions

View File

@@ -27,6 +27,10 @@ var remoteSignerTestCases = []*lntest.TestCase{
Name: "account import",
TestFunc: testRemoteSignerAccountImport,
},
{
Name: "tapscript import",
TestFunc: testRemoteSignerTapscriptImport,
},
{
Name: "channel open",
TestFunc: testRemoteSignerChannelOpen,
@@ -228,6 +232,24 @@ func testRemoteSignerAccountImport(ht *lntest.HarnessTest) {
tc.fn(ht, watchOnly, carol)
}
func testRemoteSignerTapscriptImport(ht *lntest.HarnessTest) {
tc := remoteSignerTestCase{
name: "tapscript import",
sendCoins: true,
fn: func(tt *lntest.HarnessTest, wo, carol *node.HarnessNode) {
testTaprootImportTapscriptFullTree(ht, wo)
testTaprootImportTapscriptPartialReveal(ht, wo)
testTaprootImportTapscriptRootHashOnly(ht, wo)
testTaprootImportTapscriptFullKey(ht, wo)
testTaprootImportTapscriptFullKeyFundPsbt(ht, wo)
},
}
_, watchOnly, carol := prepareRemoteSignerTest(ht, tc)
tc.fn(ht, watchOnly, carol)
}
func testRemoteSignerChannelOpen(ht *lntest.HarnessTest) {
tc := remoteSignerTestCase{
name: "basic channel open close",