mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-21 04:17:50 +01:00
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:
committed by
GitHub
parent
6989ef4a19
commit
3537d04c4d
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user