lnwallet: update tests to utilize the in-progress btcsuite/btcd/rpctest package
Instead of creating “fake” utxos for bob, and alice. We now employ a dedicated mining node to hand out utxos, and generate blocks with hand picked transactions.
This commit is contained in:
1 parent
7bebefbd8f
commit
92c14c99c3
2 files changed
+141
-175
No files matched your search
+4
-1
@@ -866,10 +866,11 @@ func (l *LightningWallet) handleFundingCounterPartySigs(msg *addCounterPartySigs
|
||||
// signatures to their inputs.
|
||||
pendingReservation.theirFundingSigs = msg.theirFundingSigs
|
||||
fundingTx := pendingReservation.partialState.FundingTx
|
||||
sigIndex := 0
|
||||
for i, txin := range fundingTx.TxIn {
|
||||
if txin.SignatureScript == nil {
|
||||
// Attach the signature so we can verify it below.
|
||||
txin.SignatureScript = pendingReservation.theirFundingSigs[i]
|
||||
txin.SignatureScript = pendingReservation.theirFundingSigs[sigIndex]
|
||||
|
||||
// Fetch the alleged previous output along with the
|
||||
// pkscript referenced by this input.
|
||||
@@ -899,6 +900,8 @@ func (l *LightningWallet) handleFundingCounterPartySigs(msg *addCounterPartySigs
|
||||
msg.err <- fmt.Errorf("cannot validate transaction: %s", err)
|
||||
return
|
||||
}
|
||||
|
||||
sigIndex++
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user