- Sep 03, 2018
-
-
HAOYUatHZ authored
-
- Aug 27, 2018
-
-
Wenbiao Zheng authored
-
- Aug 23, 2018
-
-
Mymskmkt authored
-
- Aug 20, 2018
-
-
Wuxiang authored
-
- Aug 14, 2018
-
-
Zsolt Felföldi authored
-
- Aug 09, 2018
-
-
libotony authored
-
- Aug 07, 2018
-
-
Oleg Kovalov authored
-
- Aug 06, 2018
-
-
Zsolt Felföldi authored
-
- Jul 30, 2018
-
-
Janoš Guljaš authored
-
Oleg Kovalov authored
* all: simplify switches * silly mistake
-
- Jul 23, 2018
-
-
Wenbiao Zheng authored
-
Janoš Guljaš authored
* cmd/swarm: minor cli flag text adjustments * cmd/swarm, swarm/storage, swarm: fix mingw on windows test issues * cmd/swarm: support for smoke tests on the production swarm cluster * cmd/swarm/swarm-smoke: simplify cluster logic as per suggestion * changed colour of landing page * landing page reacts to enter keypress * swarm/api/http: sticky footer for swarm landing page using flex * swarm/api/http: sticky footer for error pages and fix for multiple choices * swarm: propagate ctx to internal apis (#754) * swarm/simnet: add basic node/service functions * swarm/netsim: add buckets for global state and kademlia health check * swarm/netsim: Use sync.Map as bucket and provide cleanup function for... * swarm, swarm/netsim: adjust SwarmNetworkTest * swarm/netsim: fix tests * swarm: added visualization option to sim net redesign * swarm/netsim: support multiple services per node * swarm/netsim: remove redundant return statement * swarm/netsim: add comments * swarm: shutdown HTTP in Simulation.Close * swarm: sim HTTP server timeout * swarm/netsim: add more simulation methods and peer events examples * swarm/netsim: add WaitKademlia example * swarm/netsim: fix comments * swarm/netsim: terminate peer events goroutines on simulation done * swarm, swarm/netsim: naming updates * swarm/netsim: return not healthy kademlias on WaitTillHealthy * swarm: fix WaitTillHealthy call in testSwarmNetwork * swarm/netsim: allow bucket to have any type for a key * swarm: Added snapshots to new netsim * swarm/netsim: add more tests for bucket * swarm/netsim: move http related things into separate files * swarm/netsim: add AddNodeWithService option * swarm/netsim: add more tests and Start* methods * swarm/netsim: add peer events and kademlia tests * swarm/netsim: fix some tests flakiness * swarm/netsim: improve random nodes selection, fix TestStartStop* tests * swarm/netsim: remove time measurement from TestClose to avoid flakiness * swarm/netsim: builder pattern for netsim HTTP server (#773) * swarm/netsim: add connect related tests * swarm/netsim: add comment for TestPeerEvents * swarm: rename netsim package to network/simulation
-
- Jul 18, 2018
-
-
jkcomment authored
-
- Jul 13, 2018
-
-
Anton Evangelatov authored
* swarm: propagate ctx, enable opentracing * swarm/tracing: log error when tracing is misconfigured
-
- Jul 03, 2018
-
-
Felix Lange authored
* p2p/discover: move bond logic from table to transport This commit moves node endpoint verification (bonding) from the table to the UDP transport implementation. Previously, adding a node to the table entailed pinging the node if needed. With this change, the ping-back logic is embedded in the packet handler at a lower level. It is easy to verify that the basic protocol is unchanged: we still require a valid pong reply from the node before findnode is accepted. The node database tracked the time of last ping sent to the node and time of last valid pong received from the node. Node endpoints are considered verified when a valid pong is received and the time of last pong was called 'bond time'. The time of last ping sent was unused. In this commit, the last ping database entry is repurposed to mean last ping _received_. This entry is now used to track whether the node needs to be pinged back. The other big change is how nodes are added to the table. We used to add nodes in Table.bond, which ran when a remote node pinged us or when we encountered the node in a neighbors reply. The transport now adds to the table directly after the endpoint is verified through ping. To ensure that the Table can't be filled just by pinging the node repeatedly, we retain the isInitDone check. During init, only nodes from neighbors replies are added. * p2p/discover: reduce findnode failure counter on success * p2p/discover: remove unused parameter of loadSeedNodes * p2p/discover: improve ping-back check and comments * p2p/discover: add neighbors reply nodes always, not just during init
-
- Jun 21, 2018
-
-
ethersphere authored
-
Andrey Petrov authored
-
Andrey Petrov authored
-
Andrey Petrov authored
-
Andrey Petrov authored
-
Andrey Petrov authored
-
Andrey Petrov authored
-
Andrey Petrov authored
These RPC calls are analogous to Parity's parity_addReservedPeer and parity_removeReservedPeer. They are useful for adjusting the trusted peer set during runtime, without requiring restarting the server.
-
- Jun 14, 2018
-
-
Elad authored
This commit adds all changes needed for the merge of swarm-network-rewrite. The changes: - build: increase linter timeout - contracts/ens: export ensNode - log: add Output method and enable fractional seconds in format - metrics: relax test timeout - p2p: reduced some log levels, updates to simulation packages - rpc: increased maxClientSubscriptionBuffer to 20000
-
- Jun 12, 2018
-
-
Felix Lange authored
ToECDSAPub was unsafe because it returned a non-nil key with nil X, Y in case of invalid input. This change replaces ToECDSAPub with UnmarshalPubkey across the codebase.
-
- May 29, 2018
-
-
Dmitry Shulyak authored
-
- May 17, 2018
-
-
Felix Lange authored
This applies spec changes from ethereum/EIPs#1049 and adds support for pluggable identity schemes. Some care has been taken to make the "v4" scheme standalone. It uses public APIs only and could be moved out of package enr at any time. A couple of minor changes were needed to make identity schemes work: - The sequence number is now updated in Set instead of when signing. - Record is now copy-safe, i.e. calling Set on a shallow copy doesn't modify the record it was copied from.
-
- May 08, 2018
-
-
Guilherme Salgado authored
Peer.run was discarding the reason for disconnection sent to the disc channel by Disconnect.
-
Ivan Daniluk authored
-
kiel barry authored
-
- May 03, 2018
-
-
GagziW authored
-
- Apr 17, 2018
-
-
thomasmodeneis authored
-
- Mar 26, 2018
-
-
David Huie authored
The parameter `rand` is unused in `PrivateKey.Decrypt`. Decryption in the ECIES encryption scheme is deterministic, so randomness isn't needed.
-
- Feb 26, 2018
-
-
JU HYEONG PARK authored
-
- Feb 23, 2018
-
-
Anton Evangelatov authored
* go-metrics: fork library and introduce ResettingTimer and InfluxDB reporter. * vendor: change nonsense/go-metrics to ethersphere/go-metrics * go-metrics: add tests. move ResettingTimer logic from reporter to type. * all, metrics: pull in metrics package in go-ethereum * metrics/test: make sure metrics are enabled for tests * metrics: apply gosimple rules * metrics/exp, internal/debug: init expvar endpoint when starting pprof server * internal/debug: tiny comment formatting fix
-
- Feb 22, 2018
-
-
Ivan Daniluk authored
* p2p: remove unused code * p2p: remove unused imports
-
Anton Evangelatov authored
-
Felix Lange authored
-
- Feb 21, 2018
-
-
Dmitry Shulyak authored
This change removes a peer information from dialing history when peer is removed from static list. It allows to force a server to re-dial concrete peer if it is needed. In our case we are running geth node on mobile devices, and it is common for a network connection to flap on mobile. Almost every time it flaps or network connection is changed from cellular to wifi peers are disconnected with read timeout. And usually it takes 30 seconds (default expiration timeout) to recover connection with static peers after connectivity is restored. This change allows us to reconnect with peers almost immediately and it seems harmless enough.
-
- Feb 17, 2018
-
-
Janos Guljas authored
Handle all expectations in ProtocolSession.TestExchanges in any order that are received.
-