diff options
author | lash <nolash@users.noreply.github.com> | 2019-01-10 19:33:51 +0800 |
---|---|---|
committer | Viktor TrĂ³n <viktor.tron@gmail.com> | 2019-01-10 19:33:51 +0800 |
commit | 7240f4d800d3ffb97cf23a27d13746428d761cec (patch) | |
tree | 7a632be60e304e1aed98a826dc526df48c3a1c0e /swarm/pss | |
parent | 7ca40306af9da68a0d31439117246de8247f99d6 (diff) | |
download | dexon-7240f4d800d3ffb97cf23a27d13746428d761cec.tar dexon-7240f4d800d3ffb97cf23a27d13746428d761cec.tar.gz dexon-7240f4d800d3ffb97cf23a27d13746428d761cec.tar.bz2 dexon-7240f4d800d3ffb97cf23a27d13746428d761cec.tar.lz dexon-7240f4d800d3ffb97cf23a27d13746428d761cec.tar.xz dexon-7240f4d800d3ffb97cf23a27d13746428d761cec.tar.zst dexon-7240f4d800d3ffb97cf23a27d13746428d761cec.zip |
swarm/network: Rename minproxbinsize, add as member of simulation (#18408)
* swarm/network: Rename minproxbinsize, add as member of simulation
* swarm/network: Deactivate WaitTillHealthy, unreliable pending suggestpeer
Diffstat (limited to 'swarm/pss')
-rw-r--r-- | swarm/pss/client/client_test.go | 2 | ||||
-rw-r--r-- | swarm/pss/notify/notify_test.go | 2 | ||||
-rw-r--r-- | swarm/pss/pss_test.go | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/swarm/pss/client/client_test.go b/swarm/pss/client/client_test.go index 8f2f0e805..0d6788d67 100644 --- a/swarm/pss/client/client_test.go +++ b/swarm/pss/client/client_test.go @@ -238,7 +238,7 @@ func newServices() adapters.Services { return k } params := network.NewKadParams() - params.MinProxBinSize = 2 + params.NeighbourhoodSize = 2 params.MaxBinSize = 3 params.MinBinSize = 1 params.MaxRetries = 1000 diff --git a/swarm/pss/notify/notify_test.go b/swarm/pss/notify/notify_test.go index 6100195b0..5c29f68e0 100644 --- a/swarm/pss/notify/notify_test.go +++ b/swarm/pss/notify/notify_test.go @@ -209,7 +209,7 @@ func newServices(allowRaw bool) adapters.Services { return k } params := network.NewKadParams() - params.MinProxBinSize = 2 + params.NeighbourhoodSize = 2 params.MaxBinSize = 3 params.MinBinSize = 1 params.MaxRetries = 1000 diff --git a/swarm/pss/pss_test.go b/swarm/pss/pss_test.go index b0753ad17..46daa4674 100644 --- a/swarm/pss/pss_test.go +++ b/swarm/pss/pss_test.go @@ -1965,7 +1965,7 @@ func newServices(allowRaw bool) adapters.Services { return k } params := network.NewKadParams() - params.MinProxBinSize = 2 + params.NeighbourhoodSize = 2 params.MaxBinSize = 3 params.MinBinSize = 1 params.MaxRetries = 1000 @@ -2045,7 +2045,7 @@ func newTestPss(privkey *ecdsa.PrivateKey, kad *network.Kademlia, ppextra *PssPa // set up routing if kademlia is not passed to us if kad == nil { kp := network.NewKadParams() - kp.MinProxBinSize = 3 + kp.NeighbourhoodSize = 3 kad = network.NewKademlia(nid[:], kp) } |