140c70d772
document some packages
2015-02-10 22:59:10 +00:00
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
581c4e558e
cmds/id: show self addrs
2015-02-03 05:51:31 -08:00
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
88fa7388de
feat(core) add shutdown message
2015-02-01 21:54:20 -08:00
d0f9be56e7
refac(core) privatize method
2015-02-01 21:54:20 -08:00
1beef957da
refac(core): expose core.OnlineWithRouting constructor option
...
fix FIXUP maybeRouter in core
2015-02-01 21:54:19 -08:00
c114b04ae1
feat(bitswap): synchronous close
2015-02-01 21:54:19 -08:00
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
7b85579d7a
core: move online service init block into own func
...
addresses CR comments
2015-01-31 17:20:34 -08:00
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
abb3c9c9c4
implement path type
2015-01-29 17:51:08 +00:00
f1267d0624
change ipns resolve/publish to store raw keys, not b58 encoded
2015-01-28 19:36:30 +00:00
76d9d89aff
user friendliness in logs + output
2015-01-26 17:01:00 -08:00
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
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
069cff3d25
p2p/nat: upnp + pmp
2015-01-24 12:42:22 -08:00
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