1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 17:03:58 +08:00

721 Commits

Author SHA1 Message Date
727b6bf9a3 udpated commands and RPC dialing to work with new configuration changes 2014-09-27 16:02:50 -07:00
8b68776fff Merge pull request #128 from jbenet/feat/peerstorefix
Peerstore Fix
2014-09-27 01:39:05 -07:00
484d6004f7 crypto: abstracted Key and added Equals. 2014-09-27 00:18:54 -07:00
c7bd8b78dd handshake catch 2014-09-26 23:58:44 -07:00
198b6e2bae remove stale TODO 2014-09-26 23:55:28 -07:00
ee3be129fc set util.ErrNotFound = ds.ErrNotFound 2014-09-26 23:37:36 -07:00
c1219303a0 fixed muxer errors 2014-09-26 03:57:34 -07:00
2507680d77 ok fixed queue test 2014-09-26 03:26:48 -07:00
943c3df416 increment time for queue test
it's failing when machine slow (travis)
2014-09-26 02:52:41 -07:00
e6b96b9c75 ammend tests with changes 2014-09-26 02:41:46 -07:00
53f0b117f5 update net with peerstore 2014-09-26 02:41:46 -07:00
0817ffa366 spipe + handshake with peerstore 2014-09-26 02:41:46 -07:00
a93a31f20b peerstore: re-export ErrNotFound
This is to avoid having to import ds elsewhere.
2014-09-26 02:41:46 -07:00
80a927f279 Merge pull request #121 from jbenet/feat/addrs-in-config
config: rename addresses
2014-09-26 02:36:29 -07:00
671b09569a Merge branch 'feat/network-error-propagation-1' 2014-09-24 23:36:52 -04:00
e2a9c5de00 feat(net:service, routing) remove error return value 2014-09-24 23:35:36 -04:00
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
bc883bd0cf Merge branch 'ipfs-context-2' 2014-09-24 23:35:06 -04: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
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
ac7404a6e4 Merge branch 'feat/mock-dht' 2014-09-23 18:24:08 -04:00
c044d9c32e move mock routing tests to proper directory 2014-09-23 18:23:46 -04:00
414ff34194 change back to using Client method 2014-09-23 18:23:46 -04:00
c45cc8c448 implement a mock dht for use in testing 2014-09-23 18:23:46 -04:00
f00197542c Merge pull request #104 from jbenet/feat/fix-ping
Fixed Ping (minor)
2014-09-23 16:20:00 -04:00
9eabd80e55 Merge pull request #107 from epitron/master
Fixed a link in the README (and capitalization).
2014-09-23 13:11:24 -07:00
a5521e2b96 Fixed a link in the README (and capitalization). 2014-09-23 15:12:23 -04:00
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
eaffabec4f handshake: error out while sending + dbg 2014-09-23 05:23:54 -07:00
7228786981 make a few tests perform operations in two directions instead of one 2014-09-22 22:34:30 -07:00
7bc4fbfa5d turn logging on by default, also make Provide not fail when no peers connected 2014-09-22 19:22:04 -07:00
adcf0bfe70 better logging for ping 2014-09-22 15:53:37 -07:00
676d9c5c96 Merge pull request #69 from jbenet/net
New net interface
2014-09-22 06:37:15 -07:00
cb968c62e8 chore(net:swarm) temporarily skip test
failing due to nil pointer dereference
2014-09-22 04:29:25 -07:00
7cac1ef93d fix(net:swarm) test... use netmsg interface 2014-09-22 04:27:18 -07:00
2d2aee1508 fix(daemon) multiaddr in test 2014-09-22 04:23:55 -07:00
197046c9d2 fix(routing:dht) add ctx args 2014-09-22 04:06:19 -07:00
b85d1554cc doc(bitswap:strat) add note to remove blocks from peer's wantlist after
sending
2014-09-22 04:06:19 -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
767d6ca633 refac(bitswap, util) extract KeySet 2014-09-22 04:06:19 -07:00
faee10effe test(bitswap) send entire wantlist to peers
fix(bitswap) pass go vet

fixes #97

https://github.com/jbenet/go-ipfs/issues/97
2014-09-22 04:06:19 -07:00
d514b91ff3 fix(routing:dht) implement FindProvidersAsync in terms of FindProviders
until construction is complete on the actual async method

reverts changes from ec50703395098f75946f0bad01816cc54ab18a58

ec50703395
2014-09-22 04:06:18 -07:00
39ad222da9 fix(bitswap) keep interface the same
changing the bitswap interace breaks tests and makes things a bit
difficult going forward. I think I have a temporary solution to replace
the async method.

this commit partially reverts changes from:

ec50703395098f75946f0bad01816cc54ab18a58

ec50703395
2014-09-22 04:06:18 -07:00
2179b5d77b fix(bitswap:testnet) Provide takes ctx 2014-09-22 04:06:18 -07:00
b806270e5d test(bitswap) test sending wantlist to peers 2014-09-22 04:06:18 -07:00
b4ef99bc81 fix(exch) name the error 2014-09-22 04:06:18 -07:00
b5ea124a76 style(bitswap) swap argument order 2014-09-22 04:06:18 -07:00
7d62be76ad chore(bitswap) cleanup 2014-09-22 04:06:18 -07:00
60798b800a style(bitswap) make signature more readable 2014-09-22 04:06:18 -07:00