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.

20 lines
403 B

11 years ago
11 years ago
11 years ago
  1. package peer
  2. import (
  3. . "github.com/tendermint/tendermint/binary"
  4. )
  5. /* Filter
  6. A Filter could be a bloom filter for lossy filtering, or could be a lossless filter.
  7. Either way, it's used to keep track of what a peer knows of.
  8. */
  9. type Filter interface {
  10. Binary
  11. Add(Msg)
  12. Has(Msg) bool
  13. // Loads a new filter.
  14. // Convenience factory method
  15. Load(ByteSlice) Filter
  16. }