Jeromy
171952b795
remove gogo-protobuf from godeps, use gx vendored
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-12 17:21:40 -08:00
Jeromy
2263539c1c
do that last thing again
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-31 15:37:39 -08:00
Jeromy
c0101c0c4b
update libp2p dep
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-31 10:19:50 -08:00
Jeromy
3d0aa592ec
go-keyspace dep from libp2p added
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:08 -08:00
Jeromy
0e312f5caf
initial vendoring of libp2p outside of the repo with gx
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:06 -08:00
Juan Batiz-Benet
6e9c72ab37
expose internal/pb packages.
...
we shouldn't use internal packages.
License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-07-10 11:08:49 -07:00
Jeromy
ef294431d4
move util.Key into its own package under blocks
2015-06-01 16:10:08 -07:00
rht
3547f7ae33
Replace 'var * bytes.Buffer' with '\1 := new(bytes.Buffer)'
2015-05-26 23:18:04 +07:00
Jeromy
829b88420e
explicitly set bitswap message fullness
2015-05-21 03:08:31 -04:00
Jeromy
32da687774
fix race bugs
2015-05-21 03:08:31 -04:00
Jeromy
a159e6825c
implement peermanager to control outgoing messages
...
Also more refactoring of bitswap in general, including some perf
improvements and eventlog removal.
clean up, and buffer channels
move some things around
correctly buffer work messages
more cleanup, and improve test perf
remove unneccessary test
revert changes to bitswap message, they werent necessary
2015-05-21 03:08:30 -04:00
rht
ac7edddb94
Run 'gofmt -s -w' on these files
2015-05-19 06:11:15 +07:00
Henry
5fff7742f3
godeps: move (go)goprotobuf to github location
2015-04-28 13:42:22 +02:00
Ho-Sheng Hsiao
bf22aeec0a
Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
...
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -07:00
Brian Tiger Chow
a1fc5f9cf7
log(bitswap/message) make bsmsg loggable
2015-02-01 22:08:49 -08:00
Brian Tiger Chow
d78b76ddb4
log(bitswap) add bitswap loggable
2015-02-01 22:08:49 -08:00
Juan Batiz-Benet
e2698a8733
net -> p2p/net
...
The net package is the next to move. It will be massaged
a bit still to fix the Network / "NetworkBackend" conflict.
2015-01-02 08:46:45 -08:00
Brian Tiger Chow
0545c4d15d
refactor: *Entry -> Entry
...
in many places, entries are assigned from one slice to another and in
different goroutines. In one place, entries were modified (in the
queue). To avoid shared mutable state, probably best to handle entries
by value.
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-17 23:44:46 -08:00
Brian Tiger Chow
fedcebf67a
refactor: re-use wantlist.Entry type wherever it makes sense
...
it seems to make sense since, in each place, the Key and Priority
represent the same information
b/c you know the saying...
"It is better to have 100 functions operate on one data structure than
10 functions on 10 data structures."
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-17 23:44:44 -08:00
Brian Tiger Chow
86c438b6e1
refactor() message API
...
performing CR in the form of a PR. Let me know what you think.
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-17 23:44:41 -08:00
Jeromy
57e7dd7b8b
extracted ledgerset from strategy, cleaned up a few comments from the PR
2014-12-17 23:44:40 -08:00
Jeromy
5b6a5e807f
implement bitswap roundWorker
...
make vendor
2014-12-17 23:44:39 -08:00
Juan Batiz-Benet
ba323c3e48
make vendor
2014-12-17 23:25:38 -08:00
Juan Batiz-Benet
41751b4938
Integrated new network into ipfs
2014-12-16 14:47:29 -08:00
Brian Tiger Chow
74eb03231d
fix(core, peer) helpers to testutil, err handling
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 14:32:52 -08:00
Brian Tiger Chow
d77c4bb5e0
refactor(peer): create peer through peerstore
...
for safety!
use mockpeer.WithID methods to create peers in tests
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 02:10:42 -08:00
Jeromy
d53deebada
wire GetBlocks into blockservice
2014-12-05 20:53:26 +00:00
Brian Tiger Chow
42dfc50250
docs(bitswap/message) BitSwapMessage interface
2014-10-27 22:43:54 -07:00
Brian Tiger Chow
edf99f5e20
fix(bitswap) preserve ordering in bitswap message
2014-10-27 22:43:54 -07:00
Brian Tiger Chow
91a31a3e7d
test(bitswap/message) no duplicates
2014-10-27 21:58:21 -07:00
Brian Tiger Chow
cebeff43b9
style(bitswap/message) rename method -> AddBlock
...
to emphasize idempotence
2014-10-27 21:58:21 -07:00
Brian Tiger Chow
caedb64697
fix(bitswap/message) impl with map to ensure no duplicate blocks
...
comes at the cost of O(n) Blocks() method.
2014-10-27 21:58:21 -07:00
Brian Tiger Chow
2c4fefb9d6
style(bitswap/message) rename struct
...
so there's one less name to think about
2014-10-27 21:58:20 -07:00
Brian Tiger Chow
f94d6a37b6
refactor(bitswap/message) use map to prevent duplicate entries
...
A nice invariant for bitswap sessions:
Senders and receivers can trust that messages do not contain
duplicate blocks or duplicate keys. Backing the message with a
map enforces this invariant.
This comes at the cost of O(n) getters.
2014-10-27 21:58:20 -07:00
Brian Tiger Chow
842b910853
style(bitswap/message) rename AppendWanted -> AddWanted
...
implementation will be patched to ensure bitswap messages cannot contain
duplicate blocks or keys
2014-10-27 21:58:20 -07:00
Brian Tiger Chow
80b573425b
refactor(bitswap) mv proto PBMessage -> Message
2014-10-22 21:49:46 -07:00
Brian Tiger Chow
d3ac9ceee3
misc(exch/bitswap) add TODOs
2014-10-22 15:54:18 -07:00
Brian Tiger Chow
8823f46248
fix(exch/bs/pb) rename proto package -> bitswap_message_pb
2014-10-22 15:54:18 -07:00
Brian Tiger Chow
15605fb18f
refactor(exchange/bitswap) move proto to internal pb package
2014-10-22 15:54:17 -07:00
Juan Batiz-Benet
9ca87fbb93
peer.Peer is now an interface
...

2014-10-20 03:26:46 -07:00
Jeromy
6e0cfb3273
removed error from return type of blocks.NewBlock()
2014-10-07 20:46:01 +00:00
Brian Tiger Chow
315e121ef9
feat(bitswap:message) implement FromNet
2014-09-22 04:06:16 -07:00
Brian Tiger Chow
800af9ca3a
fix(bitswap:message) don't use proto internally
2014-09-22 04:06:15 -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