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
9f685af14f
test(bitswap)
2014-09-22 04:06:15 -07:00
543dfeea35
refac(bitswap) less concurrency while testing and iterating
2014-09-22 04:06:15 -07:00
6e1c3b36bb
fix(bitswap) check for nil in public interface
2014-09-22 04:06:15 -07:00
c80c8aa977
test(bitswap:testnet)
...
misc:
* test network client getting more than max
* test for find providers
* rename factory method
* local network
* misc test improvements
* test bitswap get block timeout
* test provider exists but cannot connect to peer
* test sending a message async over local network
2014-09-22 04:06:15 -07:00
7975ffe721
fix(exchange) package name
2014-09-22 04:06:15 -07:00
0c67019447
style(exch:bitswap) rename adapter, session, etc.
...
style(exch:bitswap) rename NetMessage adapter impl
2014-09-22 04:06:14 -07:00
071a66495f
style(exch:bitswap) rename variable
2014-09-22 04:06:14 -07:00
71aed67413
feat(bitswap) broadcast block to routing, peers on receipt
2014-09-22 04:06:14 -07:00
98a6e9fac2
feat(exch:bitswap) simply get method
2014-09-22 04:06:14 -07:00
74e81e06fa
refac(bitswap) extract const
2014-09-22 04:06:14 -07:00
9a18fd6354
chore(exch, bitswap) misc trivial cleanup
2014-09-22 04:06:14 -07:00
e907b2e03c
feat(exchange) pass ctx to exchange.HasBlock(...)
2014-09-22 04:06:14 -07:00
1054b8d8ad
fix(bitswap) use passed ctx
2014-09-22 04:06:14 -07:00
42770cc39a
refac(exchange) replace timeout -> context in API
2014-09-22 04:06:14 -07:00
252be07ec5
refac(bitswap) let adapter be created with nil delegate
...
yay deleting code.
2014-09-22 04:06:14 -07:00
0bd8f2092b
refac(routing) replace timeout -> ctx
...
@jbenet oh hai there!
2014-09-22 04:06:14 -07:00
81da645ed6
chore(bitswap) remove unused const
2014-09-22 04:06:14 -07:00
85f84fe446
refac(ex:bs) remove local peer ref until shown to be necessary
2014-09-22 04:06:13 -07:00
d82a2517d1
refac(exch:bitswap) always notify strategy when message sent
2014-09-22 04:06:13 -07:00
335b50f4c6
style(ex:bitswap) put public methods at top
2014-09-22 04:06:13 -07:00
5cec6197ae
test(exch:bs:strategy) test accounting consistency
...
> Why expose num bytes sent and received?
Makes it easy to test consistency of the ledgers
> Got a better reason?
Makes it possible to expose metrics to the people-facing API
2014-09-22 04:06:13 -07:00
ded1f8f5a8
fix(bitswap) compiler errors
...
didn't run tests after the refactor. apologies.
2014-09-22 04:06:13 -07:00
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