mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-06 20:11:08 +00:00
19 lines
362 B
Go
19 lines
362 B
Go
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
|
|
}
|