1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 18:13:54 +08:00

488 Commits

Author SHA1 Message Date
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
814cb992f4 misc(crypto) remove stale test
@jbenet

Handshake library has been modified to use Secure Pipe. This test
targets the old implementation.

TODO: write a new handshake test
2014-09-22 04:06:18 -07:00
8112fae7b3 get bitswap working with dht
@perfmode using non-async version as apparently there's
a bug in async. will look into it.
2014-09-22 04:06:18 -07:00
8d29a3255f core bugfix -- connect ctx 2014-09-22 04:06:18 -07:00
52cefb16cd Routing uses context now
@perfmode boom
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
81b4b38140 RPC Address init + checks 2014-09-22 04:06:17 -07:00
1653304129 adjusted what Address means in config
There are (so far) two sorts of addresses that peers care about:

- peer network addresses, local to listen, saved to bootstrap.
  `config.Identity.Address`

- peer RPC network address, local RPC tcp endpoint
  `config.RPCAddress`

@whyrusleeping @perfmode
2014-09-22 04:06:17 -07:00
64ba4cd0df output + linting 2014-09-22 04:06:17 -07:00
6807b6e98e added mars.i.ipfs.io as a bootstrap node
In the future, let's have a (signed) list of bootstrap
nodes. Ideally just a list of ipfs multiaddrs (with node.ID)
2014-09-22 04:06:17 -07:00
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
b053896e5f uncommenting global debug
let's keep this a turn-on for testing sort of thing.
(want the outputs of commands like `ipfs add` to be
usable as inputs to other programs/scripts).

maybe we should consider adding a --debug (not -d),
once we figure out adding flags that apply globally :)
@whyrusleeping
2014-09-22 04:06:17 -07:00
370d2593dc this warning should only print out on debug
(perhaps should be logged instead)
2014-09-22 04:06:17 -07:00
74a0aa54ad fixed [%s] bug 2014-09-22 04:06:17 -07:00
8ed04cfe23 fixed test 2014-09-22 04:06:17 -07:00
315e121ef9 feat(bitswap:message) implement FromNet 2014-09-22 04:06:16 -07:00
d1c4ffba7c init -f fix and output 2014-09-22 04:06:16 -07:00
b7b046582b test(bitswap) test with swarm of ~500 instances
test(bitswap) run synchronously to aid the scheduler
2014-09-22 04:06:16 -07:00
d0a5339547 feat(bitswap) ACTIVATE FULL CONCURRENCY cap'n
fix(bitswap) Put synchronously. Then notify async
2014-09-22 04:06:16 -07:00
88f5be3f0d test(bitswap:testnet) shuffle the providers
to avoid letting client rely on order for correctness
2014-09-22 04:06:16 -07:00
8213cfbaa4 docs(bitswap:strat) interface comments 2014-09-22 04:06:16 -07:00
251f1d7f00 test(bitswap) add SessionGenerator 2014-09-22 04:06:16 -07:00
5aa6ccbad5 refac(bitswap) nil slices are 'range'able 2014-09-22 04:06:16 -07:00
331fcd1756 chore(bitswap) rm unused helper func 2014-09-22 04:06:16 -07:00
a5fb64071a test(bitswap) enable get block test 2014-09-22 04:06:16 -07:00
d17fcc1780 fix security comment #92 2014-09-22 04:06:16 -07:00
aa29603923 dht tests pass again 2014-09-22 04:06:16 -07:00
afb1d01048 provider testing 2014-09-22 04:06:15 -07:00
6e7a12dc11 refac(exch:offline) move offline exchange to its own package 2014-09-22 04:06:15 -07:00
ddf889d876 test(bitswap) send block from one instance to another 2014-09-22 04:06:15 -07:00
800af9ca3a fix(bitswap:message) don't use proto internally 2014-09-22 04:06:15 -07:00
57e088bbff fix(bitswap:testnet) use peer.Map 2014-09-22 04:06:15 -07:00
a8a7caa088 refac(bitswap:testnet) give testnet its own package 2014-09-22 04:06:15 -07:00