Commit Graph

75 Commits

Author SHA1 Message Date
Jeromy
2aa2b8c6c7 add routing resolver test 2014-10-01 00:26:59 -07:00
Jeromy
4c0f18cbbd implement ipns publisher code 2014-10-01 00:26:59 -07:00
Jeromy
8ddfb57c59 some bugfixes and added logging 2014-10-01 00:26:59 -07:00
Jeromy
b5fd9492d7 fixes to make interface more usable 2014-10-01 00:25:52 -07:00
Jeromy
235a767492 implement namesys resolvers (thanks to bren2010 for dns and proquint) 2014-10-01 00:16:05 -07:00
Juan Batiz-Benet
c7af4a6fa2 Bugfix: !online -> online
Caused panic.
2014-09-30 11:34:28 -07:00
Juan Batiz-Benet
c054619827 do init id offline, only dont parse keys
(test was failing)
2014-09-30 03:31:24 -07:00
Brian Tiger Chow
508a5b7a94 amendment to core context + cancels 2014-09-30 03:22:30 -07:00
Juan Batiz-Benet
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
Juan Batiz-Benet
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
Jeromy
9c221719f9 switch over to using a lock file for daemon connections 2014-09-30 03:20:15 -07:00
Jeromy
727b6bf9a3 udpated commands and RPC dialing to work with new configuration changes 2014-09-27 16:02:50 -07:00
Juan Batiz-Benet
e6b96b9c75 ammend tests with changes 2014-09-26 02:41:46 -07:00
Juan Batiz-Benet
53f0b117f5 update net with peerstore 2014-09-26 02:41:46 -07:00
Juan Batiz-Benet
303ebd894d config: changed language from Peers to Bootstrap 2014-09-24 05:31:25 -07:00
Juan Batiz-Benet
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
Brian Tiger Chow
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
Brian Tiger Chow
b5ea124a76 style(bitswap) swap argument order 2014-09-22 04:06:18 -07:00
Juan Batiz-Benet
8d29a3255f core bugfix -- connect ctx 2014-09-22 04:06:18 -07:00
Juan Batiz-Benet
8c35988b8d add bootstrap peers to peerstore. 2014-09-22 04:06:17 -07:00
Juan Batiz-Benet
b30dd47aa3 Peerstore fix (ptr to iface) 2014-09-22 04:06:17 -07:00
Juan Batiz-Benet
64ba4cd0df output + linting 2014-09-22 04:06:17 -07:00
Juan Batiz-Benet
da20887e76 ipfs add should output hash to user
for now, ipfs add output format:

    added <hash> <path>
    ...

(these commands will adhere to strict formats.)
2014-09-22 04:06:17 -07:00
Juan Batiz-Benet
74a0aa54ad fixed [%s] bug 2014-09-22 04:06:17 -07:00
Brian Tiger Chow
0c67019447 style(exch:bitswap) rename adapter, session, etc.
style(exch:bitswap) rename NetMessage adapter impl
2014-09-22 04:06:14 -07:00
Brian Tiger Chow
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
Brian Tiger Chow
fd086b9c48 refac(exchange) bitswap -> exchange/bitswap
Move go-ipfs/bitswap package to go-ipfs/exchange/bitswap

* Delineates the difference between the generic exchange interface and
  implementations (eg. BitSwap protocol)

  Thus, the bitswap protocol can be refined without having to overthink
  how future exchanges will work. Aspects common to BitSwap and other
  exchanges can be extracted out to the exchange package in piecemeal.

  Future exchange implementations can be placed in sibling packages next
  to exchange/bitswap. (eg. exchange/multilateral)
2014-09-22 04:06:13 -07:00
Juan Batiz-Benet
4284e8e960 config: use PeerID in bootstrap config 2014-09-22 04:06:12 -07:00
Brian Tiger Chow
b77a785cd8 fix(dht) remove deprecated Start() call 2014-09-22 04:05:22 -07:00
Brian Tiger Chow
547f9e1cf6 fix(core) patiently convince the core to compile
=)
2014-09-22 04:05:21 -07:00
Juan Batiz-Benet
e4e021085b add Peerstore to dht 2014-09-22 04:05:19 -07:00
Juan Batiz-Benet
70ea4f540c added peerstore to core 2014-09-22 04:05:19 -07:00
Brian Tiger Chow
fda94d9f34 refactor(bitswap) rm SetStrategy method
remove this setter while the interface is under construction
2014-09-22 04:05:18 -07:00
Juan Batiz-Benet
27d0e692ed core dht setup 2014-09-22 04:05:16 -07:00
Brian Tiger Chow
dde6ad495e todo(blockservice, core) add notes
* to wrap datastore for ease of use
* to pass a non-responsive bitswap mock rather than performing nil
* checks internally
2014-09-22 04:05:16 -07:00
Brian Tiger Chow
ab460ed882 refactor(bs, core) rename bitswap objects 2014-09-22 04:05:15 -07:00
Brian Tiger Chow
0075a47df0 fix(bs) remove concrete refs to swarm and dht 2014-09-22 04:05:15 -07:00
Brian Tiger Chow
6aecb80395 chore(core) add TODOs to use contexts 2014-09-22 04:05:15 -07:00
Juan Batiz-Benet
c14123397a starting to integrate new net 2014-09-22 04:05:13 -07:00
Juan Batiz-Benet
67e76c0acc godeps multiaddr + swarm move. 2014-09-22 04:05:12 -07:00
Juan Batiz-Benet
035d600f28 Godeps: use in net + new multiaddr 2014-09-22 04:05:12 -07:00
Jeromy
9e4b8586a9 Add config flag to cmd line interface 2014-09-17 02:49:36 +00:00
Jeromy
0ec9dce19c Merge branch 'master' of github.com:jbenet/go-ipfs into daemon
Conflicts:
	core/core.go
2014-09-14 04:22:05 +00:00
Jeromy
b55a5078a8 refactor daemon code, moved commands to core/commands 2014-09-12 21:29:54 +00:00
Brian Tiger Chow
a5c0f67c8c fix(config) failing test
also replace *Datastore with Datastore
2014-09-12 04:20:46 -07:00
Matt Bell
50d318c0be core: Updated basic initialization tests 2014-09-11 17:52:21 -07:00
Matt Bell
3ae37b29bd core: Show error when config identity is not set 2014-09-11 17:50:05 -07:00
Matt Bell
b63e10f3b5 core: Don't require address for node initialization 2014-09-11 17:49:10 -07:00
Matt Bell
7b32c11347 core: Refactored node initialization 2014-09-11 17:22:44 -07:00
Jeromy
8dfb119fa6 Merge branch 'master' of github.com:jbenet/go-ipfs
Conflicts:
	cmd/ipfs/add.go
	cmd/ipfs/cat.go
	cmd/ipfs/ls.go
	cmd/ipfs/mount_unix.go
2014-09-10 06:28:15 +00:00