95d58b2a4a
core: cleaned up bootstrap process
2015-01-23 05:25:31 -08:00
d6ce837d72
core/bootstrap: cleaned up bootstrapping
...
Moved it to its own package to isolate scope.
2015-01-23 02:08:29 -08:00
ec848c486b
core: call dht bootstrap
2015-01-23 02:08:28 -08:00
eb6afd3edc
fix interface for coreunix.Cat, now takes a path
2015-01-23 06:39:20 +00:00
721ff57263
fix(blockservice) fully async exchange.HasBlock
2015-01-20 23:43:21 -08:00
56ae2fd0a8
routing: record validation into record/
...
This commit moves the record validation/verification
from dht/ into the new record/ packaage. Validator object
-- which is merely a map of ValidatorFuncs -- with a
VerifyRecord
cc @whyrusleeping
2015-01-19 08:10:37 +00:00
a5233faeae
some comments
2015-01-19 08:06:51 +00:00
feeada0d90
fix fuse mounting issues
...
this time, without loading the private key on every startup
2015-01-19 08:05:52 +00:00
797aad9137
refactor(core) extract const
2015-01-18 14:41:43 -08:00
a025fc9adf
refactor(core) switch style to type assertions
...
@jbenet cool with this?
2015-01-18 14:41:43 -08:00
c1ff2149f1
doc(core) add TODO
2015-01-18 14:41:43 -08:00
15a6237ffc
fix(core) improve documentation and describe behavior of function
2015-01-18 14:41:43 -08:00
19c2c6556f
fix(core) don't assume Repo won't be nil
2015-01-18 14:41:43 -08:00
de45277883
doc(core, main)
2015-01-18 14:41:43 -08:00
1edc5c0a65
refactor(core) Close in teardown
...
This declarative style is simpler to compose than the imperative wiring
up of objects.
+ pass context to StartOnlineServices as parameter. one by one, trying
to remove dependencies on node state so these initialization steps can
be broken down.
2015-01-18 14:41:43 -08:00
4b5ff960c9
feat(core): use repo.Repo in core constructor
2015-01-18 14:41:42 -08:00
884143bf9c
move generic packages to thirdparty (see thirdparty/README.md)
2015-01-18 14:04:45 -08:00
a7650b259d
add test for reprovider and slight refactor
2015-01-14 22:14:52 +00:00
f068c89147
reprovide: move core's reprovider into online services
2015-01-13 22:12:37 -08:00
3269986e42
basic reprovider implementation
...
make vendor
2015-01-13 22:12:37 -08:00
5b3164de5c
refactor(repo/config) move config under repo
2015-01-13 03:09:30 -08:00
7aa4a83f2e
addr: proper filter + subtract
2015-01-12 20:49:06 -08:00
ceadfbe791
core: some logging for addresses
2015-01-12 19:15:02 -08:00
7ec1a674e3
p2p/net/swarm: do not usre link local addrs
2015-01-12 19:15:02 -08:00
63c0d41614
fix(core): perform sophisticated boostrap operation
2015-01-11 01:23:27 -08:00
033e33dadf
feat(core): expose IpfsNode.Resolve
2015-01-11 01:23:27 -08:00
223ee4df1a
refactor(core): move Add, Cat to core/io
2015-01-11 01:23:27 -08:00
ddf14bee78
refactor(core): replace online bool with mode type
2015-01-11 01:23:27 -08:00
130532c532
rm errTODO
2015-01-11 01:23:27 -08:00
b0f7143250
refactor(core): distinguish repo.Repo components
2015-01-11 01:23:27 -08:00
9d438843bd
refactor(core): distinguish Online services
2015-01-11 01:23:27 -08:00
ca8190a889
refactor(core): isolate complex DHT initialization
2015-01-11 01:23:27 -08:00
eb6c40d5dd
refactor(core): isolate the complex initialization of PeerHost construction
2015-01-11 01:23:27 -08:00
8e42e86d87
hack(core): instantiate peerstore at the end if it hasn't already been instantiated
...
this is a dirty hack
2015-01-11 01:23:26 -08:00
707874c3a5
refactor(core): init node.Blocks in shared NewIPFSNode constructor
2015-01-11 01:23:26 -08:00
34e8f3ee26
refactor(core): init DAG and its dependents in shared constructor
...
fix: remove merkledag import
may need to squash this commit into the merkledag move commit
2015-01-11 01:23:26 -08:00
7fa5d81093
refactor(core): rename
2015-01-11 01:23:26 -08:00
efb75ee5ba
refactor: move add and cat to the core
2015-01-11 01:23:25 -08:00
2c3fb43350
feat: expose IpfsNode.Bootstrap() method
2015-01-11 01:23:25 -08:00
4c2eda2123
refactor: remove deprecated function
2015-01-11 01:23:25 -08:00
57b3ffa533
feat: new core constructor + config options (Standard, Online, Offline)
2015-01-11 01:23:25 -08:00
1bd69b19ac
core: make sure to call swarm.FilterAddrs
...
also move network setup into its own self-contained func
2015-01-10 08:07:19 -08:00
1fa14335b9
core: rearranged initialization a bit
2015-01-04 00:47:27 -08:00
8fb5cf9578
swap net2 -> net
2015-01-02 08:46:46 -08:00
e2698a8733
net -> p2p/net
...
The net package is the next to move. It will be massaged
a bit still to fix the Network / "NetworkBackend" conflict.
2015-01-02 08:46:45 -08:00
cc0d7c9b57
crypto -> p2p/crypto
...
The crypto package moves into p2p. Nothing in it so far is ipfs
specific; everything is p2p-general.
2015-01-02 08:46:45 -08:00
89f5cd4c94
introducing p2p pkg
...
I think it's time to move a lot of the peer-to-peer networking
but-not-ipfs-specific things into its own package: p2p.
This could in the future be split off into its own library.
The first thing to go is the peer.
2015-01-02 08:46:45 -08:00
49cb135ca2
ipfsnet -> swarmnet
...
swarmnet is a better name for the package, because
it's just a Network implemented with a Swarm.
(ipfsnet will be something slightly different).
2015-01-02 08:46:44 -08:00
4807127def
net: move Network implementation to own pkg
...
I needed the network implementation in its own
package, because I'll be writing several services that
will plug into _it_ that shouldn't be part of the core net
package. and then there were dependency conflicts. yay.
mux + identify are good examples of what i mean.
2015-01-02 08:46:43 -08:00
27dc9594ba
refactor(bitswap) bitswap.Network now abstracts ipfs.Network + ipfs.Routing
...
@jbenet @whyrusleeping
the next commit will change bitswap.Network.FindProviders to only deal
with IDs
2014-12-23 09:19:21 -08:00