Versions in this module Expand all Collapse all v1 v1.41.2 Mar 27, 2022 Changes in this version + type Block struct + Data []byte + Key Key + type Cache struct + Hash func([]byte) Hash + func (me *Cache[Peer, BlockKey, Hash]) CheckBlock(key BlockKey, data []byte) (bad []Peer) + func (me *Cache[Peer, BlockKey, Hash]) ForgetBlock(key BlockKey) + func (me *Cache[Peer, BlockKey, Hash]) Init() + func (me *Cache[Peer, BlockKey, Hash]) RecordBlock(peer Peer, key BlockKey, data []byte)