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
@@ -48,7 +48,8 @@ func setup(t *testing.T, cfg *cfg.MempoolConfig, numNodes int, chBuf uint) *reac
peerUpdates: make(map[p2p.NodeID]*p2p.PeerUpdates, numNodes),
}
rts.mempoolChnnels = rts.network.MakeChannelsNoCleanup(t, MempoolChannel, new(protomem.Message), int(chBuf))
chDesc := p2p.ChannelDescriptor{ID: byte(MempoolChannel)}
rts.mempoolChnnels = rts.network.MakeChannelsNoCleanup(t, chDesc, new(protomem.Message), int(chBuf))
for nodeID := range rts.network.Nodes {
rts.kvstores[nodeID] = kvstore.NewApplication()