File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -849,10 +849,6 @@ async def start_peer(self, peer: BasePeer) -> None:
849
849
self .logger .debug ("DAO fork check with %s failed: %s" , peer , err )
850
850
await peer .disconnect (DisconnectReason .useless_peer )
851
851
return
852
- except MalformedMessage as err :
853
- self .logger .debug ("DAO fork check with %s failed: %s" , peer , err )
854
- await peer .disconnect (DisconnectReason .bad_protocol )
855
- return
856
852
asyncio .ensure_future (peer .run (finished_callback = self ._peer_finished ))
857
853
self ._add_peer (peer , msgs )
858
854
@@ -977,6 +973,12 @@ async def ensure_same_side_on_dao_fork(
977
973
except (TimeoutError , PeerConnectionLost ) as err :
978
974
raise DAOForkCheckFailure (
979
975
"Timed out waiting for DAO fork header from {}: {}" .format (peer , err ))
976
+ except MalformedMessage as err :
977
+ raise DAOForkCheckFailure (
978
+ "Malformed message while doing DAO fork check with {0}: {1}" .format (
979
+ peer , err ,
980
+ )
981
+ ) from err
980
982
981
983
try :
982
984
request .validate_headers (headers )
You can’t perform that action at this time.
0 commit comments