0135e3ebbe
swarm + net: add explicit listen addresses
2014-11-05 04:00:49 -08:00
f0d823c2db
fix tests (circular import)
2014-10-30 01:17:26 -07:00
79866d3378
hotfix(core) assign node.Resolver = path.Resolver
...
discovered by @mappum and applied at 414e20b71e
fixing here to address #233
https://github.com/jbenet/go-ipfs/issues/233
2014-10-29 06:58:35 -07:00
d79ebe68d2
dht ctxcloserify
2014-10-25 21:33:59 -07:00
4584bc8d18
clean up core initialization
...
- less floating variables
2014-10-25 21:33:59 -07:00
8cf22c062f
core is now ctxcloser
2014-10-25 21:33:10 -07:00
f2b8803a57
net/service now uses ctxcloser
2014-10-25 21:33:10 -07:00
056699cebe
convert DAGService to an interface
2014-10-25 22:15:19 -04:00
184c25430b
go-vet friendly codebase
...
- distinguish log.Error and log.Errorf functions
- Initialize structs with field names
- A bit of unreachable code (defers)
2014-10-25 03:46:39 -07:00
31b0ff0307
add testing for pins
2014-10-22 00:28:41 -07:00
f7c1ed39e0
renamed datastore.go -> go-datastore
2014-10-21 15:10:58 -07:00
ac62d13e42
peerstore Put -> Add
...
Changed lots of peer use, and changed the peerstore to ensure
there is only ever one peer in use.
Fixed #174
2014-10-20 06:37:12 -07:00
9ca87fbb93
peer.Peer is now an interface
...

2014-10-20 03:26:46 -07:00
b1d11ccfcb
peerstore constructs peers
...
Now, all peers should be retrieved from the Peerstore, which will
construct the peers accordingly. This ensures there's only one peer
object per peer (opposite would be bad: things get out sync)
cc @whyrusleeping
2014-10-20 00:44:44 -07:00
60cd0f1cf0
some dht cleanup, and make DHTs take a master context
2014-10-18 04:28:26 -07:00
b2bd6848a8
fix core NewNode not setting network field, and added new json serializer for diagnostics
2014-10-18 04:28:25 -07:00
338b037238
clean up and add inet.Network to bitswap
...
new Service interface
2014-10-10 20:43:04 -07:00
3732244837
actually start the diagnostics service
2014-10-10 13:18:20 -07:00
280c7e7e06
implement diagnostics service
2014-10-10 13:18:19 -07:00
972c0f7b4b
u.DOut -> log.Debug
...
and other logging switches. I kept the u.PErr and u.POut in cli
commands, as those do need to write raw output directly.
2014-10-09 04:50:22 -07:00
2944360f5c
New NameSystem interface
...
type NameSystem interface {
Resolver
Publisher
}
should say it all.
cc @whyrusleeping
2014-10-08 04:14:52 -07:00
910a76e220
updated multiaddr use across codebase
2014-10-06 04:13:43 -07:00
0c8ae7674e
loggers: set level
2014-10-04 03:53:21 -07:00
7e1cd59259
initialize loggers at ERROR
2014-10-04 03:36:30 -07:00
2ce9415c69
+ fs ds + thread safe
2014-10-03 14:45:21 -07:00
88d804e32a
added core logging
2014-10-03 14:45:21 -07:00
ba510cbd6d
IpnsPublicher -> Publisher interface
2014-10-01 01:36:21 -07:00
728f17d3c9
cmd/ipfs/pin.go now uses MakeCommand
...
+ added recursive pinning func
2014-10-01 01:17:27 -07:00
7f5e13716d
writes to ipns work if the top object is the written file (no directories yet!)
2014-10-01 00:39:57 -07:00
2aa2b8c6c7
add routing resolver test
2014-10-01 00:26:59 -07:00
4c0f18cbbd
implement ipns publisher code
2014-10-01 00:26:59 -07:00
8ddfb57c59
some bugfixes and added logging
2014-10-01 00:26:59 -07:00
b5fd9492d7
fixes to make interface more usable
2014-10-01 00:25:52 -07:00
235a767492
implement namesys resolvers (thanks to bren2010 for dns and proquint)
2014-10-01 00:16:05 -07:00
c7af4a6fa2
Bugfix: !online -> online
...
Caused panic.
2014-09-30 11:34:28 -07:00
c054619827
do init id offline, only dont parse keys
...
(test was failing)
2014-09-30 03:31:24 -07:00
508a5b7a94
amendment to core context + cancels
2014-09-30 03:22:30 -07:00
4b5e0291f8
core context + cancels
...
Erroring out in core setup should cancel the context
to ensure subsystems are shut down. This has to happen
all over the place we use contexts.
@perfmode @whyrusleeping
2014-09-30 03:22:30 -07:00
f2db4b77ac
don't load identity in offline mode (temp)
...
**For now**, we don't need to load/parse the private key
(which causes a signficant delay in commands) when doing
things entirely offline. This may change, and in that case
the private key should be loaded on demand.
2014-09-30 03:22:29 -07:00
53f0b117f5
update net with peerstore
2014-09-26 02:41:46 -07:00
303ebd894d
config: changed language from Peers to Bootstrap
2014-09-24 05:31:25 -07:00
193aebc4c0
config: rename addresses
...
WARNING: change breaks old configs.
@whyrusleeping @perfmode
This commit changes the way addresses are stored in config files.
It lumps Identity.Address and RPCAddress into Addresses. This
commit also fixes several golint issues.
2014-09-24 05:28:35 -07:00
9d7ae40003
feat(bitswap) expose ability to toggle "niceness"
...
true -> always send to peer
false -> use ledger-based strategy described in IPFS paper draft 3
2014-09-22 04:06:19 -07:00
b5ea124a76
style(bitswap) swap argument order
2014-09-22 04:06:18 -07:00
8d29a3255f
core bugfix -- connect ctx
2014-09-22 04:06:18 -07:00
8c35988b8d
add bootstrap peers to peerstore.
2014-09-22 04:06:17 -07:00
b30dd47aa3
Peerstore fix (ptr to iface)
2014-09-22 04:06:17 -07:00
64ba4cd0df
output + linting
2014-09-22 04:06:17 -07:00
0c67019447
style(exch:bitswap) rename adapter, session, etc.
...
style(exch:bitswap) rename NetMessage adapter impl
2014-09-22 04:06:14 -07:00
e1fe4f6d60
refac(exchange) rename exchange.Interface to match golang conventions
...
examples:
http://golang.org/pkg/container/heap/#Interface
http://golang.org/pkg/net/#Interface
http://golang.org/pkg/sort/#Interface
2014-09-22 04:06:13 -07:00