-
Notifications
You must be signed in to change notification settings - Fork 34
dialyzer surgery #273
base: master
Are you sure you want to change the base?
dialyzer surgery #273
Conversation
@@ -65,11 +65,6 @@ | |||
|
|||
{shell, [{apps, [lager, ranch]}]}. | |||
|
|||
{dialyzer, [ | |||
{warnings, [unknown]}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't expecting you'd have to strip this section out after you fixed the abuse of handle_gossip_data?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to get rid of this to get rid of the throttle errors I was seeing. maybe I didn't need to?
@@ -88,8 +88,7 @@ put(#peerbook{tid=TID, stale_time=StaleTime}=Handle, PeerList0, Prevalidated) -> | |||
false -> lists:filter(fun libp2p_peer:verify/1, PeerList0) | |||
end, | |||
ThisPeerId = libp2p_swarm:pubkey_bin(TID), | |||
%% XXX uncomment this to reject any peers publishing RFC1918 addresses once the network has transitioned over | |||
AllowRFC1918 = true, %% is_rfc1918_allowed(TID), | |||
AllowRFC1918 = is_rfc1918_allowed(TID), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should check we don't have many peers advertising RFC1918 addresses before we merge this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll check that tomorrow morning.
we have to abuse the type system a little here to get it to ignore the horrors we're committing for the pre-decode speedup.