channeldb/channel_test: use random outpoint when creating new test channels

In this commit, we use random outpoints when creating new test channels
to ensure we can uniquely identify them.
This commit is contained in:
Wilmer Paulino 2019-01-03 20:33:33 -05:00
parent f7fb9486b4
commit f6c02aec20

@ -205,7 +205,7 @@ func createTestChannelState(cdb *DB) (*OpenChannel, error) {
return &OpenChannel{ return &OpenChannel{
ChanType: SingleFunder, ChanType: SingleFunder,
ChainHash: key, ChainHash: key,
FundingOutpoint: *testOutpoint, FundingOutpoint: wire.OutPoint{Hash: key, Index: rand.Uint32()},
ShortChannelID: chanID, ShortChannelID: chanID,
IsInitiator: true, IsInitiator: true,
IsPending: true, IsPending: true,