mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
start on netstore
This commit is contained in:
parent
e6e6964e5a
commit
398deb7766
1 changed files with 16 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue