Jeromy
a29c0fc751
move blocking calls out of single threaded loops, cancel contexts ASAP
2015-02-19 06:04:39 +00:00
Jeromy
5253b6ab13
pass routed host into bitswap construction
2015-02-18 19:11:38 +00:00
Jeromy
6241c25984
make contructor code a little less magical
2015-02-18 19:11:33 +00:00
Jeromy
e40e5699f9
use a routedHost in the core node constructor
2015-02-18 18:56:57 +00:00
Jeromy
7a2545a14b
implement nodebuilder
2015-02-11 21:47:07 +00:00
Jeromy
140c70d772
document some packages
2015-02-10 22:59:10 +00:00
Brian Tiger Chow
8558838d00
fix(core) check nil for _all_ owned resources
...
since construction can fail, and construction is non-trivial, it's
probably safer to never assume resource exists.
cc @jbenet @whyrusleeping
2015-02-06 11:22:43 -07:00
Juan Batiz-Benet
581c4e558e
cmds/id: show self addrs
2015-02-03 05:51:31 -08:00
Juan Batiz-Benet
e908effb4b
AddrManager: use addr manager with smarter TTLs
...
This addr manager should seriously help with the addrsplosion
problem.
2015-02-02 21:04:14 -08:00
Brian Tiger Chow
88fa7388de
feat(core) add shutdown message
2015-02-01 21:54:20 -08:00
Brian Tiger Chow
d0f9be56e7
refac(core) privatize method
2015-02-01 21:54:20 -08:00
Brian Tiger Chow
1beef957da
refac(core): expose core.OnlineWithRouting constructor option
...
fix FIXUP maybeRouter in core
2015-02-01 21:54:19 -08:00
Brian Tiger Chow
c114b04ae1
feat(bitswap): synchronous close
2015-02-01 21:54:19 -08:00
Juan Batiz-Benet
29bf59dded
bootstrap: use ipfsaddr for boostrap peers ⚠️
...
⚠️ this commit makes your current configs unusable, as the
default bootstrap peers. You may need to edit your config.
Go from:
```js
Bootstrap: [
{
"Address": "/ip4/104.131.131.82/tcp/4001",
"PeerID": "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"
}
]
```
To:
```js
Bootstrap: [
"/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ"
]
```
2015-02-01 05:16:52 -08:00
Juan Batiz-Benet
7b85579d7a
core: move online service init block into own func
...
addresses CR comments
2015-01-31 17:20:34 -08:00
Juan Batiz-Benet
1a3752b81f
core: setup peerhost + listen separate steps
...
We had a problem: we were starting all the services with the network
live, and so would miss early messages. We were noticing bitswap
messages not handled (not in muxer). Many of the subsystems expect
the network to _exist_ when they start up, so we split construction
and starting to listen into two separate steps.
2015-01-30 20:37:53 -08:00
Jeromy
abb3c9c9c4
implement path type
2015-01-29 17:51:08 +00:00
Jeromy
f1267d0624
change ipns resolve/publish to store raw keys, not b58 encoded
2015-01-28 19:36:30 +00:00
Juan Batiz-Benet
76d9d89aff
user friendliness in logs + output
2015-01-26 17:01:00 -08:00
Juan Batiz-Benet
ca757c66ff
p2p/nat: managed by host now.
...
Exposing the NAT to the core is unnecessary. The Host can take
care of it. If a need emerges, we can address it then.
2015-01-26 14:00:00 -08:00
Juan Batiz-Benet
332d350196
p2p/nat: re-factors nat object
...
- allow retrieving addresses
- allow notifications on mapping changes
- allow lifecycle mgmt (future commit will manage it)
2015-01-26 13:45:02 -08:00
Juan Batiz-Benet
069cff3d25
p2p/nat: upnp + pmp
2015-01-24 12:42:22 -08:00
Juan Batiz-Benet
95d58b2a4a
core: cleaned up bootstrap process
2015-01-23 05:25:31 -08:00
Juan Batiz-Benet
d6ce837d72
core/bootstrap: cleaned up bootstrapping
...
Moved it to its own package to isolate scope.
2015-01-23 02:08:29 -08:00
Juan Batiz-Benet
ec848c486b
core: call dht bootstrap
2015-01-23 02:08:28 -08:00
Jeromy
eb6afd3edc
fix interface for coreunix.Cat, now takes a path
2015-01-23 06:39:20 +00:00
Brian Tiger Chow
721ff57263
fix(blockservice) fully async exchange.HasBlock
2015-01-20 23:43:21 -08:00
Juan Batiz-Benet
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
Jeromy
a5233faeae
some comments
2015-01-19 08:06:51 +00:00
Jeromy
feeada0d90
fix fuse mounting issues
...
this time, without loading the private key on every startup
2015-01-19 08:05:52 +00:00
Brian Tiger Chow
797aad9137
refactor(core) extract const
2015-01-18 14:41:43 -08:00
Brian Tiger Chow
a025fc9adf
refactor(core) switch style to type assertions
...
@jbenet cool with this?
2015-01-18 14:41:43 -08:00
Brian Tiger Chow
c1ff2149f1
doc(core) add TODO
2015-01-18 14:41:43 -08:00
Brian Tiger Chow
15a6237ffc
fix(core) improve documentation and describe behavior of function
2015-01-18 14:41:43 -08:00
Brian Tiger Chow
19c2c6556f
fix(core) don't assume Repo won't be nil
2015-01-18 14:41:43 -08:00
Brian Tiger Chow
de45277883
doc(core, main)
2015-01-18 14:41:43 -08:00
Brian Tiger Chow
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
Brian Tiger Chow
4b5ff960c9
feat(core): use repo.Repo in core constructor
2015-01-18 14:41:42 -08:00
Brian Tiger Chow
884143bf9c
move generic packages to thirdparty (see thirdparty/README.md)
2015-01-18 14:04:45 -08:00
Jeromy
a7650b259d
add test for reprovider and slight refactor
2015-01-14 22:14:52 +00:00
Juan Batiz-Benet
f068c89147
reprovide: move core's reprovider into online services
2015-01-13 22:12:37 -08:00
Jeromy
3269986e42
basic reprovider implementation
...
make vendor
2015-01-13 22:12:37 -08:00
Brian Tiger Chow
5b3164de5c
refactor(repo/config) move config under repo
2015-01-13 03:09:30 -08:00
Juan Batiz-Benet
7aa4a83f2e
addr: proper filter + subtract
2015-01-12 20:49:06 -08:00
Juan Batiz-Benet
ceadfbe791
core: some logging for addresses
2015-01-12 19:15:02 -08:00
Juan Batiz-Benet
7ec1a674e3
p2p/net/swarm: do not usre link local addrs
2015-01-12 19:15:02 -08:00
Brian Tiger Chow
63c0d41614
fix(core): perform sophisticated boostrap operation
2015-01-11 01:23:27 -08:00
Brian Tiger Chow
033e33dadf
feat(core): expose IpfsNode.Resolve
2015-01-11 01:23:27 -08:00
Brian Tiger Chow
223ee4df1a
refactor(core): move Add, Cat to core/io
2015-01-11 01:23:27 -08:00
Brian Tiger Chow
ddf14bee78
refactor(core): replace online bool with mode type
2015-01-11 01:23:27 -08:00