mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-29 18:10:48 +02:00
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:
@ -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,
|
||||
|
Reference in New Issue
Block a user