github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/internal/p2p/p2ptest/util.go (about) 1 package p2ptest 2 3 import ( 4 gogotypes "github.com/gogo/protobuf/types" 5 6 "github.com/ari-anchor/sei-tendermint/types" 7 ) 8 9 // Message is a simple message containing a string-typed Value field. 10 type Message = gogotypes.StringValue 11 12 func NodeInSlice(id types.NodeID, ids []types.NodeID) bool { 13 for _, n := range ids { 14 if id == n { 15 return true 16 } 17 } 18 return false 19 }