Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

swarm/network: Add tests for complex connectivity evaluations #1069

Closed
wants to merge 36 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
ca7c13b
swarm/pss: forwarding function refactoring (#18353)
gluk256 Dec 21, 2018
064e72f
swarm/network: Revised depth calculation with tests
nolash Dec 12, 2018
a1db6ca
swarm/network: WIP remove redundant "full" function
nolash Dec 12, 2018
be6ded9
swarm/network: WIP peerpot refactor
nolash Dec 14, 2018
d3885dd
swarm/network: Make test methods submethod of peerpot and embed kad
nolash Dec 14, 2018
bd70cc7
swarm/network: Remove commented out code
nolash Dec 14, 2018
c332482
swarm/network: Rename health test functions
nolash Dec 14, 2018
2370532
swarm/network: Too many n's
nolash Dec 14, 2018
bdbbb83
swarm/network: Change hive Healthy func to accept addresses
nolash Dec 17, 2018
55bdd3d
swarm/network: Add Healthy proxy method for api in hive
nolash Dec 17, 2018
1f2edfb
swarm/network: Skip failing test out of scope for PR
nolash Dec 17, 2018
ff3dabf
swarm/network: Skip all tests dependent on SuggestPeers
nolash Dec 17, 2018
b7d9e51
swarm/network: Remove commented code and useless kad Pof member
nolash Dec 17, 2018
e28a789
swarm/network: Remove more unused code, add counter on depth test errors
nolash Dec 17, 2018
c735ad3
swarm/network: WIP Create Healthy assertion tests
nolash Dec 17, 2018
306640b
swarm/network: Roll back health related methods receiver change
nolash Dec 17, 2018
8f59376
swarm/network: Hardwire network minproxbinsize in swarm sim
nolash Dec 17, 2018
d309a8d
swarm/network: Rework Health test to strict
nolash Dec 17, 2018
e6da789
swarm/network: Skip discovery tests (dependent on SuggestPeer)
nolash Dec 17, 2018
e60cc34
swarm/network: Remove useless minProxBinSize in stream
nolash Dec 18, 2018
e0b9f40
swarm/network: Remove unnecessary testing.T param to assert health
nolash Dec 19, 2018
ec2d5e3
swarm/network: Implement t.Helper() in checkHealth
nolash Dec 19, 2018
a7531d3
swarm/network: Rename check back to assert now that we have helper magic
nolash Dec 19, 2018
ce8de34
swarm/network: Revert WaitTillHealthy change (deferred to nxt PR)
nolash Dec 20, 2018
22096cc
swarm/network: Kademlia tests GotNN => ConnectNN
nolash Dec 20, 2018
43de85e
swarm/network: Renames and comments
nolash Dec 20, 2018
bd3ad21
swarm/network: Add comments
nolash Dec 21, 2018
f1b143b
swarm/network: Make minproxbinsize constant throughout simulation
nolash Dec 20, 2018
2c35a8f
swarm/network: Add evaluation of potential conncetions in health testing
nolash Dec 18, 2018
200bfdf
swarm/network: Add comment to new connectedPotential function
nolash Dec 18, 2018
de57c00
swarm/network: Rename Got to Connect
nolash Dec 18, 2018
eba2613
swarm/network: Finish basic test cases for potent
nolash Dec 19, 2018
a627947
swarm/network: Cherrypick saturation, potency test adds from wrong br…
nolash Dec 19, 2018
b5cb505
swarm/network: Use assert and t helper on all health tests
nolash Dec 19, 2018
72dae51
swarm/network: Cleanup after rebase on upstream cosmetic changes
nolash Dec 20, 2018
719e3b6
swarm/network: Edit comments, remove redundant test case
nolash Jan 9, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion swarm/network/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (d *Peer) handleSubPeersMsg(msg *subPeersMsg) error {
d.setDepth(msg.Depth)
var peers []*BzzAddr
d.kad.EachConn(d.Over(), 255, func(p *Peer, po int, isproxbin bool) bool {
if pob, _ := pof(d, d.kad.BaseAddr(), 0); pob > po {
if pob, _ := Pof(d, d.kad.BaseAddr(), 0); pob > po {
return false
}
if !d.seen(p.BzzAddr) {
Expand Down
Loading