Exposed certain variables in the struct public for the Test framework. (#101)

* Exposed peer seed as a public struct

* Made certain variables public in the struct WebAPIInstance
This commit is contained in:
Akilan Selvacoumar
2023-02-11 21:57:41 +00:00
committed by GitHub
parent 6989ef4a19
commit 3537d04c4d
24 changed files with 167 additions and 149 deletions

View File

@@ -56,7 +56,7 @@ loopSeedList:
continue
}
if peer.publicKey.IsEqual(backend.peerPublicKey) { // skip if self
if peer.publicKey.IsEqual(backend.PeerPublicKey) { // skip if self
continue
}
@@ -287,7 +287,7 @@ func (backend *Backend) isReturnedPeerBadQuality(record *protocol.PeerRecord) bo
}
// Must not be self. There is no point that a remote peer would return self
if record.PublicKey.IsEqual(backend.peerPublicKey) {
if record.PublicKey.IsEqual(backend.PeerPublicKey) {
//fmt.Printf("IsReturnedPeerBadQuality received self peer\n")
return true
}