loosen up on dropped rpcs
This commit is contained in:
parent
3264b568d0
commit
21ecd64ff8
@ -1470,7 +1470,9 @@ impl RPCProcessor {
|
|||||||
Ok(v) => v,
|
Ok(v) => v,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
// Punish nodes that send direct undecodable crap
|
// Punish nodes that send direct undecodable crap
|
||||||
address_filter.punish_node_id(sender_node_id);
|
if matches!(e, RPCError::Protocol(_) | RPCError::InvalidFormat(_)) {
|
||||||
|
address_filter.punish_node_id(sender_node_id);
|
||||||
|
}
|
||||||
return Ok(NetworkResult::invalid_message(e));
|
return Ok(NetworkResult::invalid_message(e));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user