Brian Tiger Chow
7fcb5d3a4b
feat(bs:net) impl service wrapper
2014-09-22 04:05:14 -07:00
Brian Tiger Chow
b8bd2bc455
refactor(bitswap:msg) move to package
2014-09-22 04:05:14 -07:00
Brian Tiger Chow
282acb8f26
refactor(bitswap:msg) add, use getters
2014-09-22 04:05:14 -07:00
Brian Tiger Chow
21639564e7
feat(bitswap:msg) impl FromSwarm method
2014-09-22 04:05:14 -07:00
Brian Tiger Chow
70999886c5
feat(bitswap:msg) define interfaces
2014-09-22 04:05:14 -07:00
Brian Tiger Chow
24224979bb
feat(bitswap:msg) add ToNet() method
2014-09-22 04:05:14 -07:00
Brian Tiger Chow
2f4175a00d
test(bitswap:notifications) check if chan is open
2014-09-22 04:05:14 -07:00
Brian Tiger Chow
a7ef09554f
refactor(bitswap:notifications) move, rename
...
add interface
2014-09-22 04:05:14 -07:00
Brian Tiger Chow
cc163a955d
docs(bitswap:notifications) Subscribe
2014-09-22 04:05:13 -07:00
Brian Tiger Chow
b1155a0bb6
fix(bitswap:notifications) close chan on Publish
2014-09-22 04:05:13 -07:00
Brian Tiger Chow
7c378126f5
style(bitswap:notifications) rm explicit returns
2014-09-22 04:05:13 -07:00
Brian Tiger Chow
d294f7dcb2
fix(bitswap:notifications) shutdown on bs.Halt()
2014-09-22 04:05:13 -07:00
Brian Tiger Chow
b28343cffe
refactor(bitswap) meslistener -> notifications
2014-09-22 04:05:13 -07:00
Brian Tiger Chow
455c6582f5
refactor(bitswap) leverage third-party pubsub lib
...
use a third-party pubsub library for internal communications
Insights:
* Within bitswap, the actors don't need anything more than simple pubsub
behavior. Wrapping and unwrapping messages proves unneccessary.
Changes:
* Simplifies the interface for both actors calling GetBlock and actors
receiving blocks on the network
* Leverages a well-tested third-party pubsub library
Design Goals:
* reduce complexity
* extract implementation details (wrapping and unwrapping data, etc)
from bitswap and let bitswap focus on composition of core algorithms
operations
2014-09-22 04:05:13 -07:00
Juan Batiz-Benet
c14123397a
starting to integrate new net
2014-09-22 04:05:13 -07:00
Juan Batiz-Benet
67e76c0acc
godeps multiaddr + swarm move.
2014-09-22 04:05:12 -07:00
Brian Tiger Chow
677d790fb5
Merge pull request #38 from jbenet/feat/bitswap-import-cleanup
...
chore(bitswap) tidy up bitswap, ledger
2014-09-11 12:13:57 -07:00
Brian Tiger Chow
421fe5bf76
refactor(bitswap:message) add wrapper for proto
2014-09-11 03:27:47 -07:00
Brian Tiger Chow
ad30333581
fix(bitswap:ledger) race conditions
...
https://github.com/jbenet/go-ipfs/issues/39
2014-09-11 01:02:52 -07:00
Brian Tiger Chow
7bae742872
privatize fields in ledger
2014-09-10 20:30:08 -07:00
Brian Tiger Chow
99db07c3a4
hide ledger wantlist manipulation
2014-09-10 20:23:39 -07:00
Brian Tiger Chow
182604c61f
substitute with LedgerMap type
2014-09-10 19:47:47 -07:00
Brian Tiger Chow
a910d6878d
privatize getLedger method
2014-09-10 19:43:23 -07:00
Brian Tiger Chow
d71c166835
organize imports
2014-09-10 19:38:21 -07:00
Brian Tiger Chow
7968b45e58
vendor dependencies with godep
...
dependencies are vendored into Godeps/_workspace and commit versions are
recorded in Godeps.json
update datastore to e89f0511
update go.crypto
2014-09-09 22:39:42 -07:00
Jeromy
e6498b3733
fix issue with blocks not being trimmed properly and being too large to be sent over the network
2014-09-05 02:58:31 +00:00
Jeromy
691d1b36bb
integrate bitswap and blockservice into the core package
2014-08-29 11:34:50 -07:00
Jeromy
fcff5a5c96
rework bitswap to reflect discussion on PR #32
2014-08-28 16:48:00 -07:00
Jeromy
af2f04ae89
fixing up some bitswap stuff after the PR
2014-08-28 12:01:03 -07:00
Jeromy
cfdf01d58a
bitswap first working commit!
2014-08-26 14:24:51 -07:00
Jeromy
678db4fa40
more work on bitswap and other code cleanup
2014-08-25 09:44:42 -07:00
Jeromy
91e4675cbf
basic implementation of bitswap, needs testing/verification that it works
2014-08-24 18:13:05 -07:00
Jeromy
c5e7273cab
refactor to allow use of mes_listener outside of dht
2014-08-23 22:25:50 -07:00
Juan Batiz-Benet
e658ade600
sigmoid strat placeholder
2014-08-20 18:29:22 -07:00
Juan Batiz-Benet
9b06ad53bd
added ledger file
2014-08-20 18:25:33 -07:00
Juan Batiz-Benet
9c4e6703e0
lint fixes
2014-08-20 18:25:18 -07:00
Juan Batiz-Benet
0c1a202783
more fleshed out bitswap interface
2014-08-20 18:23:44 -07:00
Juan Batiz-Benet
b12134cd4c
fixed tests
2014-08-07 06:18:20 -07:00
Juan Batiz-Benet
74d26449c9
whole project go fmt
2014-08-07 06:18:20 -07:00
Juan Batiz-Benet
b784614c21
fixed build errs
...
netmux got replaced for the most part by swarm.
2014-07-30 01:53:29 -07:00
Jeromy Johnson
2ec1701494
ledger and a util function on peerID
2014-07-24 12:53:10 -07:00
Carlos Cobo
4b06adf7fc
gofmt
2014-07-24 14:31:41 +02:00
Carlos Cobo
7d6a58308b
Fix #1 build errors.
2014-07-24 14:30:23 +02:00
Juan Batiz-Benet
3f97e7e385
goling: PeerId -> ID
2014-07-22 02:28:25 -07:00
Juan Batiz-Benet
3b570d3f82
skeleton.
2014-06-26 01:14:26 -07:00