Elad Nachmias
f2e94a2c77
Persistant state for kademlia ( #282 )
...
State persistence store:
- Refactored `Intervals`' `DBStore` and `MemStore` into `swarm/state#Store` (The stores now implement the `Store` interface which allows the consumers to be persistence-agnostic)
- Changed the store database filename
- Refactored the `StateStore` interface into `Store`
2018-03-04 12:15:57 +01:00
Janos Guljas
d17b9b04a0
swarm/network/stream: fix TestIntervals by waiting for subscription activation
2018-02-28 12:56:36 +01:00
Janos Guljas
c63736067f
swarm/network/stream/intervals: fix a spelling error
2018-02-27 20:39:28 +01:00
Janos Guljas
e6550d63fa
swarm/network/light: update function signatures with the intervals changes
2018-02-27 19:39:34 +01:00
Janos Guljas
51db1b2c8a
swarm/network/stream: implement TestIntervals test
2018-02-27 16:46:14 +01:00
Janos Guljas
d0130389bc
Merge branch 'swarm-network-rewrite' into swarm-network-rewrite-syncer-intervals
2018-02-26 16:20:46 +01:00
Balint Gabor
167c995f9d
Merge branch 'master' into swarm-network-rewrite
...
# Conflicts:
# swarm/api/api.go
# swarm/api/http/error.go
# swarm/api/http/server.go
# swarm/network/depo.go
# swarm/network/hive.go
# swarm/network/kademlia/kademlia.go
# swarm/network/protocol.go
# swarm/storage/dbstore.go
# swarm/storage/localstore.go
# swarm/storage/memstore.go
# swarm/swarm.go
2018-02-26 13:25:47 +01:00
Balint Gabor
cc22311bf9
Merge branch 'master' into swarm-network-rewrite
...
# Conflicts:
# cmd/swarm/main.go
# p2p/protocols/protocol.go
# p2p/protocols/protocol_test.go
# p2p/testing/protocolsession.go
# p2p/testing/protocoltester.go
# swarm/api/config.go
# swarm/swarm.go
2018-02-26 11:27:20 +01:00
Anton Evangelatov
dcca613a0b
swarm: initial instrumentation ( #15969 )
...
* swarm: initial instrumentation with go-metrics
* swarm: initialise metrics collection and add ResettingTimer to HTTP requests
* swarm: update metrics flags names. remove redundant Timer.
* swarm: rename method for periodically updating gauges
* swarm: finalise metrics after feedback
* swarm/network: always init kad metrics containers
* swarm/network: off-by-one index in metrics containers
* swarm, metrics: resolved conflicts
2018-02-23 14:19:59 +01:00
Janos Guljas
17a5afba53
swarm/network/stream: start of TestIntervals implementation
2018-02-22 16:13:15 +01:00
Janos Guljas
110dec4416
swarm/network/stream: leveldb intervals store
2018-02-22 16:13:15 +01:00
Janos Guljas
912abc3602
swarm/netowrk/stream: create client on first offered hashes msg
...
Store client init params in a dedicated Peer map and construct
client only on the first offered hashes message.
Update tests and fix issues with shared variables in testClient
2018-02-22 16:13:15 +01:00
Janos Guljas
25e3fbbcd2
swarm/network/stream: implement intervals
...
Implement intervals for stream Client.
Change the Subscribe message handling to create both live and history
streams if required.
2018-02-22 16:11:26 +01:00
Shane Howley
dac45876c8
swarm/network: Send hive depth notification to new peer when added
...
Fixed tests not failing on errors
2018-02-20 23:51:49 +00:00
Shane Howley
c60d47882b
swarm/network: Fix for local node address not being set correctly
...
This was causing nodes to share bad addresses during peer discovery.
The Update(OverlayAddr) interface method returns an updated copy
rather than mutating the existing object.
2018-02-20 23:51:49 +00:00
Anton Evangelatov
747f63f956
all: resolved conflicts
2018-02-20 17:06:34 +01:00
lash
6e708b758a
swarm/api, swarm/network: Delint + nil chan err in protocoltester
2018-02-20 15:10:31 +01:00
Anton Evangelatov
db172c697d
all: resolved merge conflicts
2018-02-19 12:31:22 +01:00
Anton Evangelatov
bcab1fc348
p2p/sim, swarm/network: configurable EnableMsgEvents, and reduced indirection when creating Simulation Nodes
2018-02-16 17:00:08 +01:00
Anton Evangelatov
443ff80036
p2p/sim: update socket pipe to use the default available buffer from OS
2018-02-16 12:54:21 +01:00
Anton Evangelatov
dda293d0ce
swarm/network: fix discovery test bug
2018-02-14 17:13:07 +01:00
Anton Evangelatov
89501981e4
swarm/network: split sim/sock discovery tests. disable sock discovery tests.
2018-02-14 16:03:27 +01:00
Anton Evangelatov
3474bd58d5
swarm/network: fix int overflow by converting to int64
2018-02-14 15:31:01 +01:00
Anton Evangelatov
029b6928c9
swarm/network: disable failing tests on stream pkg
2018-02-13 14:05:02 +01:00
Anton Evangelatov
b7e6bf0803
p2p/sim, pot, swarm: fixes according to linter
2018-02-13 12:28:54 +01:00
Anton Evangelatov
e0086dd33a
swarm, pot: fix unnecessary conversions as reported by travis
2018-02-12 21:23:59 +01:00
Balint Gabor
6d92683079
Merge branch 'swarm-network-rewrite' into swarm-network-rewrite-syncer
2018-02-12 18:45:41 +01:00
Anton Evangelatov
9e61e26ad5
swarm, pot, p2p, internal: typos and gofmt -s
2018-02-12 17:31:11 +01:00
Anton Evangelatov
b0c5b79fbe
swarm/network swarm/pss: disable TestNetwork and TestDiscoverySimulationDockerAdapter
2018-02-12 13:58:01 +01:00
Anton Evangelatov
b263690654
swarm/pss: fix WithTimeout cancel leaks; fix fmt.Errorf formats
2018-02-12 13:28:02 +01:00
Anton Evangelatov
d0e104b280
p2p/sim, swarm/network: propagate port via NodeConfig
2018-02-07 12:58:36 +01:00
Anton Evangelatov
a81aa6acb6
swarm/network: improve tests
2018-02-05 10:27:25 +01:00
Anton Evangelatov
6bc4a5bf1b
swarm/network, swarm/pss: update tests so that they compile
2018-02-05 09:52:38 +01:00
Anton Evangelatov
6098446d55
swarm/network: fix light node code so that it compiles
2018-02-05 09:38:22 +01:00
Janos Guljas
00a4fdf503
swarm/network/stream: move TakeoverProofMsg closer to handleTakeoverProofMsg
2018-02-02 10:51:12 +01:00
Janos Guljas
5b19c2273f
swarm/network/stream: add Client.Close() ( #229 )
2018-02-02 10:49:08 +01:00
Janos Guljas
f568ef178e
swarm/network/stream: add API.UnsubscribeStream and tests
2018-01-31 17:46:39 +01:00
Janos Guljas
a14e4e7280
swarm/network/stream: add SubscribeErrorMsg and UnsubscribeMsg
2018-01-31 15:45:53 +01:00
Janos Guljas
679867dccb
Merge branch 'swarm-network-rewrite-syncer-test' into swarm-network-rewrite-syncer
2018-01-31 15:43:57 +01:00
Janoš Guljaš
bd69bcb0ce
p2p/protocols, swarm/network/stream, swarm/storage: clean debug changes
...
Branch swarm-network-rewrite-syncer-test contains a number of
changes related to swarm/network/stream package debugging.
This change removes this changes and sets changed variables to
the ones in swarm-network-rewrite-syncer branch.
2018-01-31 15:42:51 +01:00
Balint Gabor
9bafb029ad
Replace OutgoingStreamer with Server in comments
2018-01-31 14:44:43 +01:00
Janos Guljas
1f7ee0d2d7
swarm/network/stream: test improvements
2018-01-26 17:31:38 +01:00
Janos Guljas
1f731cd016
swarm/network/stream: Fix TestDeliveryFromNodes
2018-01-26 12:19:10 +01:00
Janos Guljas
f43390f5af
A workaround for LocalStore put corrupting the chunk key
2018-01-25 14:47:16 +01:00
zelig
6bf67decd2
debug
2018-01-25 12:18:39 +01:00
zelig
288a5b09c9
swarm/network/stream, swarm/storage: simplify testing code, add more debug
...
- add Close to server - fixes closed leveldb issue
- Trigger func simplified
- ClientCall simplified
- syncer simulation check now call on each node
- syncer simulation move defer cancel context before teardown
- added timeout and logging process deliveries
- improve debug log and comments
2018-01-25 08:19:45 +01:00
Janos Guljas
c55b99418b
Fix dbstore iterator bug and add even more logging
2018-01-24 17:56:36 +01:00
Janos Guljas
82e24a488d
More logging with fmt package
2018-01-24 13:50:38 +01:00
zelig
eae4473a81
more debug
2018-01-24 10:11:09 +01:00
Balint Gabor
172eb9e14d
swarm/storage, swarm/network: Fix delivery tests
2018-01-23 17:50:32 +01:00