p2p: add channel descriptors to open channel (#6440)

This commit is contained in:
Callum Waters
2021-05-10 22:22:07 +02:00
committed by GitHub
parent e334555393
commit 64e7b5efea
11 changed files with 77 additions and 61 deletions
+2 -1
View File
@@ -62,7 +62,8 @@ func setup(
fastSync: true,
}
rts.blockchainChannels = rts.network.MakeChannelsNoCleanup(t, BlockchainChannel, new(bcproto.Message), int(chBuf))
chDesc := p2p.ChannelDescriptor{ID: byte(BlockchainChannel)}
rts.blockchainChannels = rts.network.MakeChannelsNoCleanup(t, chDesc, new(bcproto.Message), int(chBuf))
i := 0
for nodeID := range rts.network.Nodes {