itest: unify PSBT channel funding tests, add taproot

With this commit we unify three existing PSBT channel funding
integration tests into a single one with the goal of testing all three
cases with simple taproot channels as well.
This commit is contained in:
Oliver Gugger
2023-08-28 13:09:52 +02:00
parent 646444cdfe
commit 590dc0c3b3
4 changed files with 149 additions and 34 deletions

View File

@@ -111,7 +111,10 @@ func testRemoteSigner(ht *lntest.HarnessTest) {
name: "psbt",
randomSeed: true,
fn: func(tt *lntest.HarnessTest, wo, carol *node.HarnessNode) {
runPsbtChanFunding(tt, carol, wo)
runPsbtChanFunding(
tt, carol, wo, false,
lnrpc.CommitmentType_LEGACY,
)
runSignPsbtSegWitV0P2WKH(tt, wo)
runSignPsbtSegWitV1KeySpendBip86(tt, wo)
runSignPsbtSegWitV1KeySpendRootHash(tt, wo)