mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 22:50:58 +02:00
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:
@@ -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",
|
||||
|
Reference in New Issue
Block a user