You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
363 B

package p2ptest
import (
gogotypes "github.com/gogo/protobuf/types"
"github.com/tendermint/tendermint/types"
)
// Message is a simple message containing a string-typed Value field.
type Message = gogotypes.StringValue
func NodeInSlice(id types.NodeID, ids []types.NodeID) bool {
for _, n := range ids {
if id == n {
return true
}
}
return false
}