aboutsummaryrefslogtreecommitdiffstats
path: root/les/peer_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2019-07-10 01:30:24 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-07-10 01:34:42 +0800
commit213690cdfd8e49940b68210da05e3836005b96b8 (patch)
tree08225fc3870740c2b12a1802d9d6f55df10fee68 /les/peer_test.go
parent8c249cb82f713c5c5b5a8160c92da7fe145e799d (diff)
downloadgo-tangerine-213690cdfd8e49940b68210da05e3836005b96b8.tar
go-tangerine-213690cdfd8e49940b68210da05e3836005b96b8.tar.gz
go-tangerine-213690cdfd8e49940b68210da05e3836005b96b8.tar.bz2
go-tangerine-213690cdfd8e49940b68210da05e3836005b96b8.tar.lz
go-tangerine-213690cdfd8e49940b68210da05e3836005b96b8.tar.xz
go-tangerine-213690cdfd8e49940b68210da05e3836005b96b8.tar.zst
go-tangerine-213690cdfd8e49940b68210da05e3836005b96b8.zip
cmd, eth, les: fix up ultra light config integration
Diffstat (limited to 'les/peer_test.go')
-rw-r--r--les/peer_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/les/peer_test.go b/les/peer_test.go
index d5ce16694..85de7cded 100644
--- a/les/peer_test.go
+++ b/les/peer_test.go
@@ -29,9 +29,9 @@ func TestPeerHandshakeSetAnnounceTypeToAnnounceTypeSignedForTrustedPeer(t *testi
//peer to connect(on ulc side)
p := peer{
- Peer: p2p.NewPeer(id, "test peer", []p2p.Cap{}),
- version: protocol_version,
- isTrusted: true,
+ Peer: p2p.NewPeer(id, "test peer", []p2p.Cap{}),
+ version: protocol_version,
+ trusted: true,
rw: &rwStub{
WriteHook: func(recvList keyValueList) {
//checking that ulc sends to peer allowedRequests=onlyAnnounceRequests and announceType = announceTypeSigned
@@ -140,7 +140,7 @@ func TestPeerHandshakeDefaultAllRequests(t *testing.T) {
t.Fatal(err)
}
- if p.isOnlyAnnounce {
+ if p.onlyAnnounce {
t.Fatal("Incorrect announceType")
}
}
@@ -196,8 +196,8 @@ func TestPeerHandshakeClientReceiveOnlyAnnounceRequestsHeaders(t *testing.T) {
return l
},
},
- network: test_networkid,
- isTrusted: true,
+ network: test_networkid,
+ trusted: true,
}
err := p.Handshake(td, hash, headNum, genesis, nil)
@@ -205,8 +205,8 @@ func TestPeerHandshakeClientReceiveOnlyAnnounceRequestsHeaders(t *testing.T) {
t.Fatal(err)
}
- if !p.isOnlyAnnounce {
- t.Fatal("isOnlyAnnounce must be true")
+ if !p.onlyAnnounce {
+ t.Fatal("onlyAnnounce must be true")
}
}