Commit Graph

4835 Commits

Author SHA1 Message Date
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
e311ccbf43 respect the lock file, also cpu profile 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
Juan Batiz-Benet
ac1430456c changed gitignore to accomodate atom
See https://github.com/atom/atom/issues/3660
2014-09-30 03:19:13 -07:00
Juan Batiz-Benet
5594432236 this import snuck in
wish go-dep warned you about dependency problems.

cc @whyrusleeping
2014-09-29 13:33:57 -07:00
Juan Batiz-Benet
be9c114650 no need for ; here
cc @mildred
2014-09-29 13:32:44 -07:00
Juan Batiz-Benet
f223aef486 Merge pull request #126 from mildred/master
Rework config file location
2014-09-29 13:27:58 -07:00
Shanti Bouchez-Mongardé
832d84ef3c When initializing datastore, create directory with correct permissions. 2014-09-29 21:54:35 +02:00
Shanti Bouchez-Mongardé
2a3ab23f1d Check the datastore is writeable when initializing 2014-09-29 21:54:35 +02:00
Shanti Bouchez-Mongardé
dc1aafbafd Fix error handling 2014-09-29 21:54:35 +02:00
Shanti Bouchez-Mongardé
e200c089fa Correct style. 2014-09-29 21:54:35 +02:00
Shanti Bouchez-Mongardé
7705dfb939 Refactor config file location, add IPFS_CONFIG_DIR
Removed config.Filename and replace it with config.GetConfigFilePath that
takes a configuration directory as argument instead. Makes code simpler.
ipfs.getConfigDir now also return the default configuration dir instead of
an empty string in some cases.
2014-09-29 21:54:35 +02:00
Shanti Bouchez-Mongardé
73077d1f72 Implement ipfs init -d (change datastore location) 2014-09-29 21:54:08 +02:00
Jeromy
68f1a1a260 update readme and a couple comments 2014-09-27 18:50:38 -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
8b68776fff Merge pull request #128 from jbenet/feat/peerstorefix
Peerstore Fix
2014-09-27 01:39:05 -07:00
Juan Batiz-Benet
484d6004f7 crypto: abstracted Key and added Equals. 2014-09-27 00:18:54 -07:00
Juan Batiz-Benet
c7bd8b78dd handshake catch 2014-09-26 23:58:44 -07:00
Juan Batiz-Benet
198b6e2bae remove stale TODO 2014-09-26 23:55:28 -07:00
Juan Batiz-Benet
ee3be129fc set util.ErrNotFound = ds.ErrNotFound 2014-09-26 23:37:36 -07:00
Juan Batiz-Benet
c1219303a0 fixed muxer errors 2014-09-26 03:57:34 -07:00
Juan Batiz-Benet
2507680d77 ok fixed queue test 2014-09-26 03:26:48 -07:00
Juan Batiz-Benet
943c3df416 increment time for queue test
it's failing when machine slow (travis)
2014-09-26 02:52:41 -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
0817ffa366 spipe + handshake with peerstore 2014-09-26 02:41:46 -07:00
Juan Batiz-Benet
a93a31f20b peerstore: re-export ErrNotFound
This is to avoid having to import ds elsewhere.
2014-09-26 02:41:46 -07:00
Juan Batiz-Benet
80a927f279 Merge pull request #121 from jbenet/feat/addrs-in-config
config: rename addresses
2014-09-26 02:36:29 -07:00
Brian Tiger Chow
671b09569a Merge branch 'feat/network-error-propagation-1' 2014-09-24 23:36:52 -04:00
Brian Tiger Chow
e2a9c5de00 feat(net:service, routing) remove error return value 2014-09-24 23:35:36 -04:00
Brian Tiger Chow
0e494690b3 feat(bitswap:network) propagate errors up the stack
Rather than pushing errors back down to lower layers, propagate the
errors upward.

This commit adds a `ReceiveError` method to BitSwap's network receiver.

Still TODO: rm the error return value from:

    net.service.handler.HandleMessage

This is inspired by delegation patterns in found in the wild.
2014-09-24 23:35:36 -04:00
Brian Tiger Chow
bc883bd0cf Merge branch 'ipfs-context-2' 2014-09-24 23:35:06 -04: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
63a2855a49 feat(util:context) add error logging to context
This commit...

is a second attempt at: https://github.com/jbenet/go-ipfs/pull/68

partially addresses: https://github.com/jbenet/go-ipfs/issues/66

is the result of discussion at:

    https://gist.github.com/perfmode/f2951c1ed3a02c484d0b
2014-09-23 21:08:36 -04:00
Brian Tiger Chow
ac7404a6e4 Merge branch 'feat/mock-dht' 2014-09-23 18:24:08 -04:00
Jeromy
c044d9c32e move mock routing tests to proper directory 2014-09-23 18:23:46 -04:00
Jeromy
414ff34194 change back to using Client method 2014-09-23 18:23:46 -04:00
Jeromy
c45cc8c448 implement a mock dht for use in testing 2014-09-23 18:23:46 -04:00
Brian Tiger Chow
f00197542c Merge pull request #104 from jbenet/feat/fix-ping
Fixed Ping (minor)
2014-09-23 16:20:00 -04:00
Jeromy Johnson
9eabd80e55 Merge pull request #107 from epitron/master
Fixed a link in the README (and capitalization).
2014-09-23 13:11:24 -07:00
epitron
a5521e2b96 Fixed a link in the README (and capitalization). 2014-09-23 15:12:23 -04:00
Juan Batiz-Benet
10a1a01cf7 ping: return sme msg
This fixes the broken pinging. (the issue was the cluster
level, it's bein set incorrectly (off by one))

Anyway, this works now:

    [peer: QmfQTbC3LxfpK5WoyHW2WgnAzo6d6GePuq2wHTsJNXM5PS] Sent message type: 'PING' [to = QmNXUeFrV9gxR4aqJddEsfhWZLSJrUsfpUSeRb3R7xvSp9]
    [QmfQTbC3LxfpK5WoyHW2WgnAzo6d6GePuq2wHTsJNXM5PS] ping QmNXUeFrV9gxR4aqJddEsfhWZLSJrUsfpUSeRb3R7xvSp9 end (err = %!s(<nil>))

cc @whyrusleeping
2014-09-23 05:23:54 -07:00
Juan Batiz-Benet
eaffabec4f handshake: error out while sending + dbg 2014-09-23 05:23:54 -07:00
Jeromy
7228786981 make a few tests perform operations in two directions instead of one 2014-09-22 22:34:30 -07:00
Jeromy
7bc4fbfa5d turn logging on by default, also make Provide not fail when no peers connected 2014-09-22 19:22:04 -07:00
Juan Batiz-Benet
adcf0bfe70 better logging for ping 2014-09-22 15:53:37 -07:00
Juan Batiz-Benet
676d9c5c96 Merge pull request #69 from jbenet/net
New net interface
2014-09-22 06:37:15 -07:00
Brian Tiger Chow
cb968c62e8 chore(net:swarm) temporarily skip test
failing due to nil pointer dereference
2014-09-22 04:29:25 -07:00
Brian Tiger Chow
7cac1ef93d fix(net:swarm) test... use netmsg interface 2014-09-22 04:27:18 -07:00