afa28dc672
update bitswap readme
2014-12-05 20:53:36 +00:00
f054be9e1f
update bitswap readme
2014-12-05 20:53:35 +00:00
260ace7f81
util keys need to be pointers for loggable
2014-12-05 20:53:33 +00:00
6552163740
add readme for bitswap
2014-12-05 20:53:33 +00:00
432eee651f
remove unnecessary concurrency in last commit
2014-12-05 20:53:33 +00:00
e8536db351
make bitswap sub-RPC's timeout (slowly for now)
2014-12-05 20:53:33 +00:00
514b26e2b8
remove sigquit from handled signals
2014-12-05 20:53:33 +00:00
c2b497e315
switch over to using sendMessage vs sendRequest
2014-12-05 20:53:32 +00:00
3a6b6c6974
cleanup, use a workgroup over channels
2014-12-05 20:53:32 +00:00
9835c1e335
doc(bitswap) fix duplicaduplication
...
@whyrusleeping
ada571425b (commitcomment-8753622)
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:32 +00:00
bc02b77b47
document bitswap more
2014-12-05 20:53:32 +00:00
f0a4fdad59
some bitswap cleanup
2014-12-05 20:53:32 +00:00
1e7b7efa76
refactor(bitswap) perform Publish in HasBlock
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:32 +00:00
829eac3012
fix(bitswap) pass derived context to called functions
...
@whyrusleeping @jbenet
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:31 +00:00
bb0b5f7c0b
fix(notifications) prevent deadlock when context cancelled early
...
+ test(notifications)
cc @whyrusleeping @jbenet
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:31 +00:00
7a3819a528
refactor(util) move block generator
...
@whyrusleeping @jbenet
Putting the block generator in a util dir until blocks.
Can't put it in util/testutil because the util/testutil/dag-generator
imports blockservice and blockservice uses the generator.
Tough problem. This'll do for now.
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:31 +00:00
d06343083e
add a test in merkledag to exercise GetBlocks
2014-12-05 20:53:31 +00:00
4cc1780705
fix issues in merkledag
2014-12-05 20:53:31 +00:00
d721c448af
reset test to the way it ways before
...
@whyrusleeping
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:31 +00:00
e27de2bfa2
fix(blockservice) respect context in GetBlocks
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:30 +00:00
bef75d5061
fix(bitswap/testutils) vendor
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:30 +00:00
fb5779661b
fix(bs/notifications) use SubOnceEach to provide uniqueness guarantee
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
vendor forked pubsub to get SubOnceEach
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:30 +00:00
19de3041fb
fix(bitswap) build-breaking compilation errors
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:30 +00:00
aac3c6abbd
fix(blockservice) test
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:30 +00:00
07bb901ed5
add a test to blockservice to demonstate GetBlocks failure.
2014-12-05 20:53:29 +00:00
6d217b5311
ensure sending of wantlist to friendly peers
2014-12-05 20:53:29 +00:00
9bf1ba6ab5
fix(bs/notifications) prevent duplicates
...
@whyrusleeping now notifications _guarantees_ there won't be any
duplicates
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:29 +00:00
20382340f5
test(bs/n) check for duplicates received
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:29 +00:00
e393edcc28
Revert "hotfix(dep) duplicates TEMP DONT MERGE TO MASTER"
...
This reverts commit 49004e9743110ba69c07852c3a105dac2e01e1c4.
2014-12-05 20:53:29 +00:00
044db5bee8
hotfix(dep) duplicates TEMP DONT MERGE TO MASTER
...
before merging, fork and send a PR to tuxy
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:29 +00:00
e4c9731643
chore(util) remove forward
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:28 +00:00
6a5bc4b879
fix(bs/n) remove unnecessary variable
...
to remove ambiguity
(before it was possible to loop over either topics or keys
by only keeping keys, there's no confusing about what to use for the
loop range
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:28 +00:00
134929ac64
misc(bs/n) rm dead code
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:28 +00:00
b3d3b1dd30
refactor(bitswap) forwardN no longer needed
...
@whyrusleeping
now, the pubsub channel closes after sending N blocks. we got this
functionality for free from the fix. So, the forwardN wrap is no longer
required! woohoo
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:28 +00:00
a5fccaccee
tests(bitswap/notifications) test niladic
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:28 +00:00
03324f7765
fix(bitswap/notifications) subscribe to many
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:28 +00:00
1fb80330da
docs(bitswap/notifications)
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:27 +00:00
50b00eb90f
use @maybebtc's ForwardBlocks function
2014-12-05 20:53:27 +00:00
d5e7fd6707
test(notifications)
...
we expect this to fail. will be fixed in upcoming commit
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:27 +00:00
9120d107c3
a little more correctness on the new bitswap impl
2014-12-05 20:53:27 +00:00
a932bfdfab
doc
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:27 +00:00
fc820a8110
tests(forward)
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:27 +00:00
be2678522e
fix(dep)
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:26 +00:00
438ffa1dd7
feat(util) ForwardNBlocks
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:26 +00:00
ed4509923c
tracking down a bug dhthell found, added asserts and better logging.
2014-12-05 20:53:26 +00:00
15d4f82945
some cleanup, and fix minor bug in dagreader from previous commit
2014-12-05 20:53:26 +00:00
d53deebada
wire GetBlocks into blockservice
2014-12-05 20:53:26 +00:00
ab201c15bb
test(bitswap) Close (but skip for now)
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:25 +00:00
59a32b1d0f
refactor(bitswap) group the deferreds
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:25 +00:00
0ce6071fea
revamp BatchFetch a bit
2014-12-05 20:53:25 +00:00