htlcswitch_/test_utils: init OpenChannels w/ Packager

This commit is contained in:
Conner Fromknecht 2018-02-27 19:32:36 -08:00
parent 970006ff2a
commit 6a88ff940a
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF

@ -5,16 +5,13 @@ import (
"crypto/rand"
"crypto/sha256"
"fmt"
"io/ioutil"
"math/big"
"net"
"os"
"testing"
"time"
"io/ioutil"
"os"
"math/big"
"net"
"github.com/btcsuite/fastsha256"
"github.com/go-errors/errors"
"github.com/lightningnetwork/lightning-onion"
@ -266,6 +263,7 @@ func createTestChannel(alicePrivKey, bobPrivKey []byte,
RemoteCommitment: aliceCommit,
ShortChanID: chanID,
Db: dbAlice,
Packager: channeldb.NewChannelPackager(chanID),
}
bobChannelState := &channeldb.OpenChannel{
@ -283,6 +281,7 @@ func createTestChannel(alicePrivKey, bobPrivKey []byte,
RemoteCommitment: bobCommit,
ShortChanID: chanID,
Db: dbBob,
Packager: channeldb.NewChannelPackager(chanID),
}
if err := aliceChannelState.SyncPending(bobAddr, broadcastHeight); err != nil {