multi: Add tests to psbt and normal open channel flow.
Itests were added to the normal channel funding flow and the psbt funding flow using unstable (unconfirmed sweeper inputs).
This commit is contained in:
8 files changed
+559
-2
No files matched your search
@@ -2947,6 +2947,11 @@ func waitForWalletSync(r *rpctest.Harness, w *lnwallet.LightningWallet) error {
|
||||
func testSingleFunderExternalFundingTx(miner *rpctest.Harness,
|
||||
alice, bob *lnwallet.LightningWallet, t *testing.T) {
|
||||
|
||||
// Define a filter function without any restrictions.
|
||||
allowUtxo := func(lnwallet.Utxo) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// First, we'll obtain multi-sig keys from both Alice and Bob which
|
||||
// simulates them exchanging keys on a higher level.
|
||||
aliceFundingKey, err := alice.DeriveNextKey(keychain.KeyFamilyMultiSig)
|
||||
@@ -2964,7 +2969,7 @@ func testSingleFunderExternalFundingTx(miner *rpctest.Harness,
|
||||
aliceChanFunder := chanfunding.NewWalletAssembler(
|
||||
chanfunding.WalletConfig{
|
||||
CoinSource: lnwallet.NewCoinSource(
|
||||
alice, nil,
|
||||
alice, allowUtxo,
|
||||
),
|
||||
CoinSelectLocker: alice,
|
||||
CoinLeaser: alice,
|
||||
|
||||
Reference in new issue
Block a user