moneybutton / yours-core

Client-side key and content management for Yours.
https://www.yours.network
MIT License
132 stars 27 forks source link

dattcore: separate fullnode from dattcore and worker #95

Closed ryanxcharles closed 8 years ago

ryanxcharles commented 8 years ago

Right now a bunch of fullnode code is actually being loaded twice, because it is both in the main dattcore code as well as in the worker. One way to handle this is to put fullnode in its own separate file, so it only gets loaded once. Another way is to expose fullnode from datt-core.js. Either way, we need to not include the same code twice because it needlessly increases the filesize.

ryanxcharles commented 8 years ago

Fixed in a series of commits, particularly from https://github.com/dattnetwork/datt/commit/8b4dd5c7f28ec9da426658a92d3c34d7ef4e2a1a to https://github.com/dattnetwork/datt/commit/617e7e7dafb898b49ed4d71151b8da33ba413313