Commit graph

8591 commits

Author SHA1 Message Date
Lewis Marshall
9627a75ce0 p2psim: Use explicit flags rather than JSON config
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-06-18 12:26:47 +02:00
Lewis Marshall
8e17ee44f0 p2psim: Use P2PSIM_NETWORK environment variable
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-06-18 12:17:21 +02:00
Lewis Marshall
e32197f998 p2p/simulations: Don't log errors for duplicate events
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-06-18 12:17:21 +02:00
Lewis Marshall
8ac9af986c p2p/simulations: Ensure nodes don't already exist
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-06-18 12:17:21 +02:00
Lewis Marshall
b56a7fb5ef p2p/simulations/examples: Log errors
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-06-18 12:17:20 +02:00
Lewis Marshall
be95e9ecb3 p2p/simulations: Set node ID if not set
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-06-18 12:17:20 +02:00
Lewis Marshall
f079529445 p2p/simulations: Don't disconnect nodes before stopping
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-06-18 12:14:34 +02:00
Lewis Marshall
5cfb34a151 p2p/simulations: Fix stopping exec nodes
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-06-18 12:13:49 +02:00
Lewis Marshall
71fb11d6a0 rpc: Fix EthSubscribe
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-06-14 11:08:45 +02:00
Viktor Trón
b3557cd6e1 Merge pull request #101 from ethersphere/network-testing-framework-nodepssmerge
swarm/pss: pssclient, pss tests
2017-06-07 10:00:21 +02:00
nolash
339e3c89a7 swarm, swarm/network, swarm/pss, les: fixed swarm bin + minor adj
removed all Pss in symbol names whereever possible (and sensible)

discovery switch in hive now prevents add of suggested peers
this is probably not a permanent solution

bzz and pss now started from swarm.go,
Outputs from bzz/pss Protocols() and APIs()
are appended to the Swarm methods
2017-06-06 22:20:21 +02:00
nolash
1dcc0e3df8 swarm/pss: pssclient, pss tests
reinstated full sim pss core tests
pssclient; p2p/protocols mountable rpc proxy for pss ws)
2017-06-06 14:50:12 +02:00
Viktor Trón
4d02b2d30e Merge pull request #97 from ethersphere/network-testing-framework-internode-rpc
p2p/simulations: Support inter-node RPC connections
2017-06-06 00:30:47 +02:00
Lewis Marshall
479409d1f3 p2p/simulations: Fix creating snapshots
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-06-05 10:52:16 +01:00
Lewis Marshall
a92a341450 p2p/simulations: Add external networks to HTTP server
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-06-05 10:52:15 +01:00
Lewis Marshall
177e720b08 p2p/simulations: Support inter-node RPC connections
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-06-05 10:52:15 +01:00
Lewis Marshall
1341843f7e p2p/simulations: Fix HTTP tests
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-06-05 10:52:15 +01:00
Lewis Marshall
69c2e537c6 p2p/simulations: Use WebSocket RPC
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-06-05 10:14:40 +01:00
Viktor Trón
1a4b945bff Merge pull request #98 from holisticode/link_distance
Link distance
2017-05-29 23:47:21 -04:00
Viktor Trón
56679dfbf5 Merge pull request #99 from ethersphere/network-testing-framework-id-encoding
p2p/discover: Fix NodeID text encoding
2017-05-29 23:45:41 -04:00
Lewis Marshall
ec1b2541dc p2p/discover: Fix NodeID text encoding
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-05-29 21:34:29 +01:00
Fabio Barone
527d12c89a p2p/simulations: return edge distance in stream update 2017-05-29 12:14:51 -05:00
Fabio Barone
1370269a9c p2p/simulations: added link distance support 2017-05-29 12:08:51 -05:00
Viktor Trón
fe1d6d215d Merge pull request #96 from ethersphere/network-testing-framework-node-id
p2p/simulations: Drop adapters.NodeId in favour of discover.NodeID
2017-05-27 21:04:17 -04:00
Viktor Trón
5e3c9d6c93 Merge pull request #94 from holisticode/network-testing-framework
p2p/simulations: eventstream backend double-backslash on init
2017-05-27 21:04:04 -04:00
Lewis Marshall
da6d15da4c p2p/simulations: Drop adapters.NodeId in favour of discover.NodeID
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-05-27 16:11:03 +01:00
Viktor Trón
bdf4ba039c Merge pull request #95 from ethersphere/network-testing-framework-services
p2p/simulations: Fix starting nodes with multiple services
2017-05-24 12:13:37 -07:00
Lewis Marshall
111dd56f17 p2p/simulations: Fix starting nodes with multiple services
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-05-23 22:27:55 -07:00
Fabio Barone
7c05c8402b p2p/simulations: eventstream backend returns double-backslash on init (FF support) 2017-05-22 13:20:35 -05:00
zelig
02f6b66e8b swarm/network/simulations: overlay 2017-05-19 16:56:44 -07:00
zelig
45769c54d9 pot: fix nil bin 2017-05-19 16:54:35 -07:00
zelig
53be4c9e99 swarm/network: add lock to seen map in discovery 2017-05-18 14:02:10 -07:00
zelig
31d9c08d3b p2p: fix service func register 2017-05-18 13:56:12 -07:00
Lewis Marshall
dc58516e26 swarm/api: Remove reference to network.PssParams
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-05-18 10:09:33 -07:00
Lewis Marshall
2073ee7c73 p2p/simulations: Fix SimAdapter
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-05-18 10:09:20 -07:00
zelig
020214b7ca swarm/network: tweaks and fixes 2017-05-18 09:29:04 -07:00
nolash
7341530f6f swarm/pss, p2p/simulations/adapters: added pss routing peerpool 2017-05-18 09:29:04 -07:00
Viktor Trón
ebd6199dfc Merge pull request #92 from ethersphere/swarm-pss-rpcclient
swarm/pss: rpcclient + pss test fixes
2017-05-17 23:45:23 -07:00
nolash
c15eba20dd swarm/network: minor bug in kademlia method 2017-05-18 08:23:28 +02:00
nolash
a924c8572e swarm/pss, swarm/network, p2p/simulations: pss prototest fix 2017-05-17 22:51:06 -07:00
nolash
d219b0edb0 WIP 2017-05-17 22:45:17 -07:00
nolash
aaeb8497a0 WIP 2017-05-17 22:05:07 -07:00
nolash
3a4aee8087 swarm/pss, p2p/testing, p2p/simulations/adapters: svcs sequence 2017-05-17 22:05:07 -07:00
nolash
dedc26bd2c swarm/pss, p2p/simulations/adapters: Multiple nodeadapter svcs + psstests 2017-05-17 22:05:07 -07:00
nolash
96331ac340 swarm, swarm/pss, swarm/network: pssclient rw reads and writes from websocket
pss is now separate package
pss event feed removed, multipile handlers allowed instead
NOTE! pss tests are removed and will be rewritten
remove pssclient outbox, psscache bug fix
WIP tests reinstation
2017-05-17 22:04:57 -07:00
zelig
6de0d73449 swarm/network: kademlia health check for discovery test 2017-05-17 22:01:07 -07:00
Lewis Marshall
30aee9e3d6 swarm/network/simulations: Update overlay sim
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-05-17 21:57:18 -07:00
Lewis Marshall
0534fa4f97 swarm/network: Wake the hive when a peer is registered
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-05-17 21:56:30 -07:00
Lewis Marshall
0b28cf8544 swarm/network: Remove hive keep alive toggle
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-05-17 21:56:06 -07:00
Lewis Marshall
be0335c889 p2p/simulations: Disable message events
Signed-off-by: Lewis Marshall <lewis@lmars.net>
2017-05-17 21:53:50 -07:00