fix panic when creating bob-node
This commit is contained in:
parent
a5d915dea2
commit
42880b5b4c
@ -70,8 +70,8 @@ func (b *bobNode) signFundingTx(fundingTx *wire.MsgTx) ([][]byte, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
bobSigs[i] = sigScript
|
|
||||||
|
|
||||||
|
bobSigs = append(bobSigs, sigScript)
|
||||||
}
|
}
|
||||||
|
|
||||||
return bobSigs, nil
|
return bobSigs, nil
|
||||||
@ -202,7 +202,6 @@ func loadTestCredits(w *LightningWallet, numOutputs, btcPerOutput int) error {
|
|||||||
tx.AddTxIn(txIn)
|
tx.AddTxIn(txIn)
|
||||||
for i := 0; i < numOutputs; i++ {
|
for i := 0; i < numOutputs; i++ {
|
||||||
tx.AddTxOut(wire.NewTxOut(satosihPerOutput, walletScriptCredit))
|
tx.AddTxOut(wire.NewTxOut(satosihPerOutput, walletScriptCredit))
|
||||||
|
|
||||||
}
|
}
|
||||||
txCredit, err := wtxmgr.NewTxRecordFromMsgTx(tx, time.Now())
|
txCredit, err := wtxmgr.NewTxRecordFromMsgTx(tx, time.Now())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user