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:
parent
f7fb9486b4
commit
f6c02aec20
@ -205,7 +205,7 @@ func createTestChannelState(cdb *DB) (*OpenChannel, error) {
|
||||
return &OpenChannel{
|
||||
ChanType: SingleFunder,
|
||||
ChainHash: key,
|
||||
FundingOutpoint: *testOutpoint,
|
||||
FundingOutpoint: wire.OutPoint{Hash: key, Index: rand.Uint32()},
|
||||
ShortChannelID: chanID,
|
||||
IsInitiator: true,
|
||||
IsPending: true,
|
||||
|
Loading…
Reference in New Issue
Block a user