fix panic when creating bob-node

This commit is contained in:
Olaoluwa Osuntokun 2015-12-15 15:22:54 -06:00
parent a5d915dea2
commit 42880b5b4c

View File

@ -70,8 +70,8 @@ func (b *bobNode) signFundingTx(fundingTx *wire.MsgTx) ([][]byte, error) {
if err != nil {
return nil, err
}
bobSigs[i] = sigScript
bobSigs = append(bobSigs, sigScript)
}
return bobSigs, nil
@ -202,7 +202,6 @@ func loadTestCredits(w *LightningWallet, numOutputs, btcPerOutput int) error {
tx.AddTxIn(txIn)
for i := 0; i < numOutputs; i++ {
tx.AddTxOut(wire.NewTxOut(satosihPerOutput, walletScriptCredit))
}
txCredit, err := wtxmgr.NewTxRecordFromMsgTx(tx, time.Now())
if err != nil {