terminal print the peer id and proto id

pull/4351/head
“GheisMohammadi” 2 years ago committed by Casey Gardiner
parent bd0cf8c131
commit d23d98f689
  1. 8
      p2p/stream/common/streammanager/streammanager.go

@ -73,8 +73,12 @@ func newStreamManager(pid sttypes.ProtoID, host host, pf peerFinder, handleStrea
Str("protocol ID", string(pid)).Logger()
protoSpec, _ := sttypes.ProtoIDToProtoSpec(pid)
fmt.Println("my peer id: ", host.ID().String())
fmt.Println("my proto id: ", pid)
// if it is a beacon node or shard node, print the peer id and proto id
if protoSpec.BeaconNode || protoSpec.ShardID != shard.BeaconChainShardID {
fmt.Println("My peer id: ", host.ID().String())
fmt.Println("My proto id: ", pid)
}
return &streamManager{
myProtoID: pid,

Loading…
Cancel
Save