File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
src/main/scala/io/iohk/ethereum/network/handshaker Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,18 @@ case class EtcHelloExchangeState(handshakerConfiguration: EtcHandshakerConfigura
31
31
log.debug(" Protocol handshake finished with peer ({})" , hello)
32
32
// FIXME in principle this should be already negotiated
33
33
Capability .negotiate(hello.capabilities.toList, handshakerConfiguration.blockchainConfig.capabilities) match {
34
- case Some (ProtocolVersions .ETC64 ) => EtcNodeStatus64ExchangeState (handshakerConfiguration)
35
- case Some (ProtocolVersions .ETH63 ) => EthNodeStatus63ExchangeState (handshakerConfiguration)
36
- case Some (ProtocolVersions .ETH64 ) => EthNodeStatus64ExchangeState (handshakerConfiguration)
34
+ case Some (ProtocolVersions .ETC64 ) => {
35
+ log.debug(" Negotiated protocol version with client {} is etc/64" , hello.clientId)
36
+ EtcNodeStatus64ExchangeState (handshakerConfiguration)
37
+ }
38
+ case Some (ProtocolVersions .ETH63 ) => {
39
+ log.debug(" Negotiated protocol version with client {} is eth/63" , hello.clientId)
40
+ EthNodeStatus63ExchangeState (handshakerConfiguration)
41
+ }
42
+ case Some (ProtocolVersions .ETH64 ) => {
43
+ log.debug(" Negotiated protocol version with client {} is eth/64" , hello.clientId)
44
+ EthNodeStatus64ExchangeState (handshakerConfiguration)
45
+ }
37
46
case _ =>
38
47
log.debug(
39
48
s " Connected peer does not support {} / {} / {} protocol. Disconnecting. " ,
You can’t perform that action at this time.
0 commit comments