Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

the grand refactor#26

Merged
zelig merged 27 commits intobzzfrom
bzzrefactor
Dec 8, 2015
Merged

the grand refactor#26
zelig merged 27 commits intobzzfrom
bzzrefactor

Conversation

@zelig
Copy link
Copy Markdown
Member

@zelig zelig commented Nov 30, 2015

organise bzz code into subdirectories

  • api, storage, network and services contain go subpackages
  • split off netStore into chunk store logic in storage subpackage, protocol handler logic and cloudstore backend in network.
  • NetStore now lean, only shared cloud access logic implementing ChunkStore Interface. Dispatches to a CloudStore implementation
  • DpaChunkStore local access logic to swarm implementing ChunkStore Interface
  • network.forwarder implements bzz cloud backend logic (forwarding, propagation, delivery), uses the peers syncer for queueing and Hive for routing/forwarding
  • network.Depo implements network.StorageHandler. remote access to swarm. handler for incoming storage/retrieval-related messages e.g. coming from bzz protocol. passed via swarm->protocol->depo depo dispatches to storage.NetStore
  • lots of renaming, rename bzz to swarm
  • Hive now acts as peers msg handler
  • dbAccess now encapsulates dbStore iterator and counter access used by syncer passed via swarm->protocol->syncer
  • unsyncedKeys and delivery request handling now out of syncer in depo
  • cmd directory now contains bzzhash and bzzup
  • services contains swap accounting, swear (was bzzcontract)
  • examples contain album (was demo) and httphandler
  • the PR also fixes several sync issues
  • uptodate develop

zelig added 27 commits November 29, 2015 17:43
* sync iterator keyrange is open starting interval (-]
* counter range is open closing interval [-)
* this makes it a lot more intuitive to set syncstates
* tests adapted
zelig added a commit that referenced this pull request Dec 8, 2015
@zelig zelig merged commit 93dc9ba into bzz Dec 8, 2015
@zelig zelig deleted the bzzrefactor branch December 8, 2015 20:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant