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.
|
package peer
|
|
|
|
import (
|
|
. "github.com/tendermint/tendermint/binary"
|
|
)
|
|
|
|
/* Filter
|
|
|
|
A Filter could be a bloom filter for lossy filtering, or could be a lossless filter.
|
|
Either way, it's used to keep track of what a peer knows of.
|
|
*/
|
|
type Filter interface {
|
|
Binary
|
|
Add(Msg)
|
|
Has(Msg) bool
|
|
|
|
// Loads a new filter.
|
|
// Convenience factory method
|
|
Load(ByteSlice) Filter
|
|
}
|