Commit Graph

58 Commits

Author SHA1 Message Date
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
Brian Tiger Chow
7968b45e58 vendor dependencies with godep
dependencies are vendored into Godeps/_workspace and commit versions are
recorded in Godeps.json

update datastore to e89f0511
update go.crypto
2014-09-09 22:39:42 -07:00
Jeromy
b2a218816d initial hack at turning ipfs into a daemon, just implemented simple rpc at this point 2014-09-09 05:11:56 +00:00
Jeromy
e6498b3733 fix issue with blocks not being trimmed properly and being too large to be sent over the network 2014-09-05 02:58:31 +00:00
Jeromy
eeab5f9bd9 fix issue with blocks not actually being stored via dagservice 2014-09-04 03:37:29 +00:00
Jeromy
4b97f1f270 create new crypto package and make rest of repo use it 2014-09-03 20:15:10 +00:00
Jeromy
aa5a34a6d1 add init command to generate crypto keys 2014-09-02 12:58:35 -07:00
Jeromy
a5d54ea29e fix up tests that started failing after changing identify code 2014-09-01 21:55:59 -07:00
Jeromy
45fc43c9cf add pub/priv key code to identify, not complete yet 2014-09-01 16:09:03 -07:00
Jeromy
ddd2a9aee5 fix core package test 2014-08-30 12:54:59 -07:00
Jeromy
c2cc4b1d70 a little cleanup, ipfs 'works' for basic file adds and cats 2014-08-29 17:22:40 -07:00
Jeromy
691d1b36bb integrate bitswap and blockservice into the core package 2014-08-29 11:34:50 -07:00
Jeromy
cfdf01d58a bitswap first working commit! 2014-08-26 14:24:51 -07:00
Jeromy
91e4675cbf basic implementation of bitswap, needs testing/verification that it works 2014-08-24 18:13:05 -07:00
Juan Batiz-Benet
3f97e7e385 goling: PeerId -> ID 2014-07-22 02:28:25 -07:00
Juan Batiz-Benet
f718bd6a92 go lint
link errors left:
- protocol buffers output is not lint-friendly
2014-07-22 02:20:08 -07:00
Juan Batiz-Benet
8a07a62643 added path resolution 2014-07-06 00:07:04 -07:00
Juan Batiz-Benet
7b98bf80f4 cleaned up interface to use DAG 2014-07-05 23:47:26 -07:00