diff --git a/bzz/netstore.go b/bzz/netstore.go index c7611bbb89..be59443d7e 100644 --- a/bzz/netstore.go +++ b/bzz/netstore.go @@ -2,9 +2,24 @@ package bzz /* DHT implements the chunk store that directly communicates with the bzz protocol on the one hand and the kademlia node table on the other. -It accumulates requests from peers, keeping a request pool and does forwarding for incoming requests and handles expiry/timeout. +It does forwarding for incoming requests and handles expiry/timeout. */ +type peerPool interface { + GetPeers(target Key, peers []peer) +} + // it implements the ChunkStore interface type netStore struct { + peerPool peerPool + // cademlia +} + +func (self *DPA) Put(chunk *Chunk) { + + return +} + +func (self *DPA) Get(key Key) (chunk *Chunk, err error) { + return }