Anton Evangelatov
baded64d88
swarm/network: measure time of messages in priority queue ( #19250 )
6 years ago
Elad
e7d1867964
contracts, swarm: implement EIP-1577 ( #19285 )
...
* contracts/ens: update public resolver solidity code
* contracts/ens: update public resolver, update go bindings
* update build
* fix ens.sol
* contracts/ens: change contract interface
* contracts/ens: implement public resolver changes
* contracts/ens: added ENSRegistry contract
* contracts/ens: reinstate old contract code
* contracts/ens: update README.md
* contracts/ens: added test coverage for fallback contract
* contracts/ens: added support for fallback contract
* contracts/ens: removed unused contract code
* contracts/ens: add todo and decode multicodec stub
* add encode
* vendor: add ipfs cid libraries
* contracts/ens: cid sanity tests
* contracts/ens: more cid sanity checks
* contracts/ens: wip integration
* wip
* Revert "vendor: add ipfs cid libraries"
This reverts commit 29d9b6b294
.
* contracts/ens: removed multiformats dependencies
* contracts/ens: added decode tests
* contracts/ens: added eip spec test, minor changes to exiting tests
* contracts/ens: moved cid decoding to own file
* contracts/ens: added unit test to encode hash to content hash
* contracts/ens: removed unused code
* contracts/ens: fix ens tests to use cid decode and encode
* contracts/ens: adjust swarm multicodecs after pr merge
* contracts/ens: fix linter error
* constracts/ens: address PR comments
* cmd, contracts: make peoples lives easier
* contracts/ens: fix linter error
* contracts/ens: address PR comments
6 years ago
Anton Evangelatov
3d067b0cea
cmd/swarm/swarm-smoke: do not fail if a node does not respond to rpc ( #19280 )
6 years ago
Elad
df488975bd
cmd/swarm: dont connect to bootnodes in tests ( #19270 )
...
* cmd/swarm: dont connect to bootnodes in tests
* cmd/utils: check for empty string when parsing enode
6 years ago
Anton Evangelatov
1a3e25e4c1
swarm: tracing improvements ( #19249 )
6 years ago
Anton Evangelatov
ceeb047e69
cmd/swarm/swarm-smoke: better logs when debug mode triggers ( #19237 )
...
* cmd/swarm/swarm-smoke: better logs for debug functionality;
* cmd/swarm/swarm-smoke: fixup
6 years ago
Elad
4687391213
cmd/swarm: do not ignore cache size=0 ( #19231 )
6 years ago
Elad
34c85def3e
cmd/swarm/swarm-smoke: sliding window test should not time out ( #19152 )
6 years ago
Anton Evangelatov
4e9230ea7a
swarm: enable p2p/discovery and disable dynamic dialling ( #19189 )
6 years ago
lash
62d9d63858
swarm/network: WIP consider all nodes for healthy iteration ( #19155 )
...
* swarm/network: WIP consider all nodes for healthy iteration
* swarm/network/simulation: extend TestWaitTillHealthy to really check kads are healthy
* cmd/swarm/swarm-snapshot: fixed bugs in snapshot creation binary
* swarm/network/simulation: addressed PR comments
* swarm/network/simulation: defer sim.Clsoe()
* swarm/network/simulation: fixed wrong sim.Close()
* swarm/network/simulation: addressed PR comments
* cmd/swarm/swarm-snapshot: reducing default to 8 nodes, more to 4
* cmd/swarm/swarm-snapshot: extended timeout to 3 mins, or 256 nodes snapshot times out
* swarm/network/simulation: More PR comments
6 years ago
Matthew Halpern
90b6cdaadf
cmd,swarm: enforce camel case variable names ( #19060 )
6 years ago
Janoš Guljaš
64d10c0872
swarm: mock store listings ( #19157 )
...
* swarm/storage/mock: implement listings methods for mem and rpc stores
* swarm/storage/mock/rpc: add comments and newTestStore helper function
* swarm/storage/mock/mem: add missing comments
* swarm/storage/mock: add comments to new types and constants
* swarm/storage/mock/db: implement listings for mock/db global store
* swarm/storage/mock/test: add comments for MockStoreListings
* swarm/storage/mock/explorer: initial implementation
* cmd/swarm/global-store: add chunk explorer
* cmd/swarm/global-store: add chunk explorer tests
* swarm/storage/mock/explorer: add tests
* swarm/storage/mock/explorer: add swagger api definition
* swarm/storage/mock/explorer: not-zero test values for invalid addr and key
* swarm/storage/mock/explorer: test wildcard cors origin
* swarm/storage/mock/db: renames based on Fabio's suggestions
* swarm/storage/mock/explorer: add more comments to testHandler function
* cmd/swarm/global-store: terminate subprocess with Kill in tests
6 years ago
Janoš Guljaš
9d5e10f5bb
cmd/swarm/global-store: use kill instead interrupt in tests ( #19142 )
6 years ago
holisticode
62d7688d0a
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
6 years ago
Matthew Halpern
fa87929a2f
cmd: prefer nil slices over zero-length slices ( #19077 )
6 years ago
holisticode
41597c2856
swarm: Debug API and HasChunks() API endpoint ( #18980 )
6 years ago
Janoš Guljaš
33d0a0efa6
cmd/swarm/global-store: global store cmd ( #19014 )
6 years ago
Anton Evangelatov
d212535ddd
cmd/swarm/swarm-smoke: refactor generateEndpoints ( #19006 )
6 years ago
holisticode
7f55b0cbd8
cmd/swarm: hashes command ( #19008 )
6 years ago
Janoš Guljaš
26aea73673
cmd, node, p2p/simulations: fix node account manager leak ( #19004 )
...
* node: close AccountsManager in new Close method
* p2p/simulations, p2p/simulations/adapters: handle node close on shutdown
* node: move node ephemeralKeystore cleanup to stop method
* node: call Stop in Node.Close method
* cmd/geth: close node.Node created with makeFullNode in cli commands
* node: close Node instances in tests
* cmd/geth, node: minor code style fixes
* cmd, console, miner, mobile: proper node Close() termination
6 years ago
Anton Evangelatov
c5c9cef5c0
cmd/swarm/swarm-smoke: remove wrong metrics ( #18970 )
6 years ago
Elad
b91bf08876
cmd/swarm/swarm-smoke: sliding window test ( #18967 )
6 years ago
Anton Evangelatov
21acf0bc8d
cmd/utils: allow for multiple influxdb tags ( #18520 )
...
This PR is replacing the metrics.influxdb.host.tag cmd-line flag with metrics.influxdb.tags - a comma-separated key/value tags, that are passed to the InfluxDB reporter, so that we can index measurements with multiple tags, and not just one host tag.
This will be useful for Swarm, where we want to index measurements not just with the host tag, but also with bzzkey and git commit version (for long-running deployments).
6 years ago
gluk256
ad13d2d407
swarm/version: commit version added ( #18510 )
6 years ago
Anton Evangelatov
bbd120354a
swarm: bootnode-mode, new bootnodes and no p2p package discovery ( #18498 )
6 years ago
holisticode
560957799a
cmd/swarm/swarm-smoke: use ResettingTimer instead of Counters for times ( #18479 )
6 years ago
Anton Evangelatov
a0b0db6305
cmd/swarm: use resetting timer to measure fetch time ( #18474 )
6 years ago
Elad
632135ce4c
cmd/swarm/swarm-snapshot: disable tests on windows ( #18478 )
6 years ago
holisticode
257bfff316
Upload speed ( #18442 )
6 years ago
Elad
34f11e752f
cmd/swarm/swarm-snapshot: swarm snapshot generator ( #18453 )
...
* cmd/swarm/swarm-snapshot: add binary to create network snapshots
* cmd/swarm/swarm-snapshot: refactor and extend tests
* p2p/simulations: remove unused triggerChecks func and fix linter
* internal/cmdtest: raise the timeout for killing TestCmd
* cmd/swarm/swarm-snapshot: add more comments and other minor adjustments
* cmd/swarm/swarm-snapshot: remove redundant check in createSnapshot
* cmd/swarm/swarm-snapshot: change comment wording
* p2p/simulations: revert Simulation.Run from master
https://github.com/ethersphere/go-ethereum/pull/1077/files#r247078904
* cmd/swarm/swarm-snapshot: address pr comments
* swarm/network/simulations/discovery: removed snapshot write to file
* cmd/swarm/swarm-snapshot, swarm/network/simulations: removed redundant connection event check, fixed lint error
6 years ago
Dave McGregor
33d233d3e1
vendor, crypto, swarm: switch over to upstream sha3 package
6 years ago
Anton Evangelatov
9e9fc87e70
swarm: remove unused/dead code ( #18351 )
6 years ago
Elad
bb724080ca
cmd/swarm, metrics, swarm/api/client, swarm/storage, swarm/metrics, swarm/api/http: add instrumentation ( #18274 )
6 years ago
Anton Evangelatov
7e7781ffaa
cmd/swarm: add flag for application name (swarm or swarm-private) ( #18189 )
...
* cmd/swarm: add flag for application name (swarm or swarm-private)
* cmd/swarm/swarm-smoke: return correct exit code
* cmd/swarm/swarm-smoke: remove colorable
* remove swarm/grafana_dashboards
6 years ago
Javier Peletier
4f0d978eaa
cmd/swarm: update should error on manifest mismatch ( #18047 )
...
* cmd/swarm: fix ethersphere/go-ethereum#979 :
update should error on manifest mistmatch
* cmd/swarm: fixed comments and remove sprintf from log.Info
* cmd/swarm: remove unnecessary comment
6 years ago
Javier Peletier
2714e8f091
Remove multihash from Swarm bzz:// for Feeds ( #18175 )
6 years ago
Ferenc Szabo
76f5f662cc
cmd/swarm: FUSE do not require --ipcpath ( #18112 )
...
- Have `${DataDir}/bzzd.ipc` as IPC path default.
- Respect the `--datadir` flag.
- Keep only the global `--ipcpath` flag and drop the local `--ipcpath` flag
as flags might overwrite each other. (Note: before global `--ipcpath`
was ignored even if it was set)
fixes ethersphere#795
6 years ago
Anton Evangelatov
d31f1f4fdb
cmd/swarm/swarm-smoke: update smoke tests to fit the new scheme for the k8s cluster ( #18104 )
6 years ago
Anton Evangelatov
6b6c4d1c27
cmd/swarm: speed up tests - use global cluster ( #18129 )
6 years ago
Alexey Sharov
eb8fa3cc89
cmd/swarm, swarm/api/http, swarm/bmt, swarm/fuse, swarm/network/stream, swarm/storage, swarm/storage/encryption, swarm/testutil: use pseudo-random instead of crypto-random for test files content generation ( #18083 )
...
- Replace "crypto/rand" to "math/rand" for files content generation
- Remove swarm/network_test.go.Shuffle and swarm/btm/btm_test.go.Shuffle - because go1.9 support dropped (see https://github.com/ethereum/go-ethereum/pull/17807 and comments to swarm/network_test.go.Shuffle)
6 years ago
Andrew Chiw
a0876f7433
Imply that SwarmApiFlag is the API endpoint to connect to, not to listen on ( #18071 )
6 years ago
Anton Evangelatov
cf3b187bde
swarm, cmd/swarm: address ineffectual assignments ( #18048 )
...
* swarm, cmd/swarm: address ineffectual assignments
* swarm/network: remove unused vars from testHandshake
* swarm/storage/feed: revert cursor changes
6 years ago
Elad
126dfde6c9
cmd/swarm: auto resolve default path according to env flag ( #17960 )
6 years ago
Roc Yu
3e1cfbae93
cmd/swarm/swarm-smoke: fix issue that loop variable capture in func ( #17992 )
6 years ago
lash
862d6f2fbf
cmd/swarm: Smoke test for Swarm Feed ( #17892 )
6 years ago
Elad
4868964bb9
cmd/swarm: split flags and cli command declarations to the relevant files ( #17896 )
6 years ago
Elad
da290e9707
cmd/swarm: speed up tests ( #17878 )
...
These minor changes already shaved off around 30s.
6 years ago
Anton Evangelatov
82a1c771ef
cmd/swarm: disable tests under Windows until they are fixed ( #17827 )
6 years ago
Anton Evangelatov
303b99663e
swarm: schemas and migrations ( #17813 )
6 years ago
Javier Peletier
de01178c18
swarm/storage/feed: Renamed package
6 years ago