holisticode and Rafael Matias
996230174c
cmd/swarm/swarm-smoke: Trigger chunk debug on timeout ( #19101 )
...
* cmd/swarm/swarm-smoke: first version trigger has-chunks on timeout
* cmd/swarm/swarm-smoke: finalize trigger to chunk debug
* cmd/swarm/swarm-smoke: fixed httpEndpoint for trigger
* cmd/swarm/swarm-smoke: port
* cmd/swarm/swarm-smoke: ws not rpc
* cmd/swarm/swarm-smoke: added debug output
* cmd/swarm/swarm-smoke: addressed PR comments
* cmd/swarm/swarm-smoke: renamed track-timeout and track-chunks
(cherry picked from commit 62d7688d0a )
2019-02-19 13:11:53 +01:00
holisticode and Rafael Matias
5de6b6b529
swarm/network: Saturation check for healthy networks ( #19071 )
...
* swarm/network: new saturation for implementation
* swarm/network: re-added saturation func in Kademlia as it is used elsewhere
* swarm/network: saturation with higher MinBinSize
* swarm/network: PeersPerBin with depth check
* swarm/network: edited tests to pass new saturated check
* swarm/network: minor fix saturated check
* swarm/network/simulations/discovery: fixed renamed RPC call
* swarm/network: renamed to isSaturated and returns bool
* swarm/network: early depth check
(cherry picked from commit 2af24724dd )
2019-02-19 13:11:52 +01:00
holisticode and Rafael Matias
7a333e4104
swarm/storage: fix HashExplore concurrency bug ethersphere#1211 ( #19028 )
...
* swarm/storage: fix HashExplore concurrency bug ethersphere#1211
* swarm/storage: lock as value not pointer
* swarm/storage: wait for to complete
* swarm/storage: fix linter problems
* swarm/storage: append to nil slice
(cherry picked from commit 3d22a46c94 )
2019-02-19 13:11:51 +01:00
holisticode and Rafael Matias
769e43e334
swarm: GetPeerSubscriptions RPC ( #18972 )
...
(cherry picked from commit 43e1b7b124 )
2019-02-19 13:11:50 +01:00
holisticode and Rafael Matias
d1ace4f344
swarm: Debug API and HasChunks() API endpoint ( #18980 )
...
(cherry picked from commit 41597c2856 )
2019-02-19 13:06:13 +01:00
holisticode and Rafael Matias
1ecf2860cf
cmd/swarm: hashes command ( #19008 )
...
(cherry picked from commit 7f55b0cbd8 )
2019-02-19 12:57:53 +01:00
holisticode and Rafael Matias
034f65e9e8
swarm/storage: Get all chunk references for a given file ( #19002 )
...
(cherry picked from commit 3eff652a7b )
2019-02-19 12:57:53 +01:00
holisticode and Rafael Matias
4625b1257f
cmd/swarm/swarm-smoke: use ResettingTimer instead of Counters for times ( #18479 )
...
(cherry picked from commit 560957799a )
2019-02-19 12:56:30 +01:00
holisticode and Rafael Matias
7383db4dac
Upload speed ( #18442 )
...
(cherry picked from commit 257bfff316 )
2019-02-19 12:56:30 +01:00
holisticode and Viktor Trón
88168ff5c5
Stream subscriptions ( #18355 )
...
* swarm/network: eachBin now starts at kaddepth for nn
* swarm/network: fix Kademlia.EachBin
* swarm/network: fix kademlia.EachBin
* swarm/network: correct EachBin implementation according to requirements
* swarm/network: less addresses simplified tests
* swarm: calc kad depth outside loop in EachBin test
* swarm/network: removed printResults
* swarm/network: cleanup imports
* swarm/network: remove kademlia.EachBin; fix RequestSubscriptions and add unit test
* swarm/network/stream: address PR comments
* swarm/network/stream: package-wide subscriptionFunc
* swarm/network/stream: refactor to kad.EachConn
2019-01-11 15:08:09 +01:00
holisticode and Viktor Trón
ae857e74bf
swarm, p2p/protocols: Stream accounting ( #18337 )
...
* swarm: completed 1st phase of swap accounting
* swarm, p2p/protocols: added stream pricing
* swarm/network/stream: gofmt simplify stream.go
* swarm: fixed review comments
* swarm: used snapshots for swap tests
* swarm: custom retrieve for swap (less cascaded requests at any one time)
* swarm: addressed PR comments
* swarm: log output formatting
* swarm: removed parallelism in swap tests
* swarm: swap tests simplification
* swarm: removed swap_test.go
* swarm/network/stream: added prefix space for comments
* swarm/network/stream: unit test for prices
* swarm/network/stream: don't hardcode price
* swarm/network/stream: fixed invalid price check
2019-01-08 00:59:00 +01:00
holisticode and Viktor Trón
90ea542e9e
Update visualized snapshot test ( #18286 )
...
* swarm/network/stream: fix visualized_snapshot_sync_sim_test
* swarm/network/stream: updated visualized snapshot-test;data in p2p event
* swarm/network/stream: cleanup visualized snapshot sync test
* swarm/network/stream: re-enable t.Skip for visualized test
* swarm/network/stream: addressed PR comments
2018-12-18 07:20:59 +01:00
holisticode and Anton Evangelatov
b98d2e9a1c
swarm/network/stream: Debug log instead of Warn for retrieval failure ( #18246 )
2018-12-04 18:29:51 +01:00
holisticode and Viktor Trón
695a5cce1e
Increase bzz version ( #18184 )
...
* swarm/network/stream/: added stream protocol version match tests
* Increase BZZ version due to streamer version change; version tests
* swarm/network: increased hive and test protocol version
2018-11-26 19:34:40 +01:00
holisticode and Anton Evangelatov
bba5fd8192
Accounting metrics reporter ( #18136 )
2018-11-26 17:05:18 +01:00
holisticode and Viktor Trón
ffe2fc3bc4
Swarm accounting ( #18050 )
...
* swarm: completed 1st phase of swap accounting
* swarm: swap accounting for swarm with p2p accounting
* swarm/swap: addressed PR comments
* swarm/swap: ignore ErrNotFound on stateStore.Get()
* swarm/swap: GetPeerBalance test; add TODO for chequebook API check
* swarm/network/stream: fix NewRegistry calls with new arguments
* swarm/swap: address @justelad's PR comments
2018-11-15 23:41:19 +01:00
holisticode and Viktor Trón
79c7a69ac8
swarm: Better syncing and retrieval option definition ( #17986 )
...
* swarm: Better syncing and retrieval option definition
* swarm/network/stream: better comments
* swarm/network/stream: addressed PR comments
2018-11-07 00:04:18 +01:00
holisticode and Viktor Trón
8ed4739176
p2p accounting ( #17951 )
...
* p2p/protocols: introduced protocol accounting
* p2p/protocols: added TestExchange simulation
* p2p/protocols: add accounting simulation
* p2p/protocols: remove unnecessary tests
* p2p/protocols: comments for accounting simulation
* p2p/protocols: addressed PR comments
* p2p/protocols: finalized accounting implementation
* p2p/protocols: removed unused code
* p2p/protocols: addressed @nonsense PR comments
2018-10-26 00:26:31 +02:00
holisticode and Viktor Trón
88b41a9e68
swarm/network/stream: disambiguate chunk delivery messages (retrieval… ( #17920 )
...
* swarm/network/stream: disambiguate chunk delivery messages (retrieval vs syncing)
* swarm/network/stream: addressed PR comments
* swarm/network/stream: stream protocol version change due to new message types in this PR
2018-10-21 09:30:41 +02:00
holisticode and Anton Evangelatov
4466c7b971
metrics: added NewCounterForced ( #17919 )
2018-10-16 16:22:51 +02:00
holisticode and Viktor Trón
11d0ff6578
Fix retrieval tests and simulation backends ( #17723 )
...
* swarm/network/stream: introduced visualized snapshot sync test
* swarm/network/stream: non-existing hash visualization sim
* swarm/network/stream: fixed retrieval tests; new backend for visualization
* swarm/network/stream: cleanup of visualized_snapshot_sync_sim_test.go
* swarm/network/stream: rebased PR on master
* swarm/network/stream: fixed loop logic in retrieval tests
* swarm/network/stream: fixed iterations for snapshot tests
* swarm/network/stream: address PR comments
* swarm/network/stream: addressed PR comments
2018-10-08 20:28:44 +02:00
holisticode and Balint Gabor
d6efa69187
Merge netsim mig to master ( #17241 )
...
* swarm: merged stream-tests migration to develop
* swarm/network: expose simulation RandomUpNode to use in stream tests
* swarm/network: wait for subs in PeerEvents and fix stream.runSyncTest
* swarm: enforce waitkademlia for snapshot tests
* swarm: fixed syncer tests and snapshot_sync_test
* swarm: linting of simulation package
* swarm: address review comments
* swarm/network/stream: fix delivery_test bugs and refactor
* swarm/network/stream: addressed PR comments @janos
* swarm/network/stream: enforce waitKademlia, improve TestIntervals
* swarm/network/stream: TestIntervals not waiting for chunk to be stored
2018-07-30 22:55:25 +02:00
holisticode and Felix Lange
fd777bb210
p2p/simulations: add mocker functionality ( #15207 )
...
This commit adds mocker functionality to p2p/simulations. A
mocker allows to starting/stopping of nodes via the HTTP API.
2017-12-12 19:10:41 +01:00
holisticode and Felix Lange
32516c768e
cmd/swarm: add config file ( #15548 )
...
This commit adds a TOML configuration option to swarm. It reuses
the TOML configuration structure used in geth with swarm
customized items.
The commit:
* Adds a "dumpconfig" command to the swarm executable which
allows printing the (default) configuration to stdout, which
then can be redirected to a file in order to customize it.
* Adds a "--config <file>" option to the swarm executable which will
allow to load a configuration file in TOML format from the
specified location in order to initialize the Swarm node The
override priorities are like follows: environment variables
override command line arguments override config file override
default config.
2017-12-11 22:56:06 +01:00
holisticode and Felix Lange
1ae0411d41
swarm/api: fixed 404 handling on missing default entry ( #15139 )
2017-10-06 15:45:54 +02:00
holisticode and Felix Lange
ac193e36ce
swarm/api/http: add error pages ( #14967 )
2017-09-08 20:29:09 +02:00
holisticode and Felix Lange
409b61fe3c
swarm/api: better name resolver handling ( #3754 )
...
Fixes #3608
2017-04-13 11:06:19 +02:00
holisticode and Felix Lange
d97dea51ec
swarm/network/kademlia: set kademlia log output to debug instead of warn ( #3787 )
2017-03-18 01:45:00 +01:00