ethereum / trinity

The Trinity client for the Ethereum network
https://trinity.ethereum.org
MIT License
474 stars 145 forks source link

ETHProxyPeer exposes wit_api property even if the remote doesn't support the wit protocol #2104

Closed gsalgado closed 3 years ago

gsalgado commented 3 years ago

In #2103 (https://github.com/ethereum/trinity/pull/2103#discussion_r522508588) we introduced a wit_api property to ETHProxyPeer, which is present even if the remote doesn't support the wit protocol. We need to fix that so that it is only present when the remote supports it, and then use that to avoid trying to download witness hashes from remotes that don't