mirror of https://github.com/voidlizard/hbs2
wtf
This commit is contained in:
parent
090f5450ad
commit
5055700461
|
@ -461,7 +461,7 @@ runPeer opts = Exception.handle myException $ do
|
||||||
pd <- find (KnownPeerKey pip) id -- <&> isJust
|
pd <- find (KnownPeerKey pip) id -- <&> isJust
|
||||||
banned <- maybe (pure False) (peerBanned pip) pd
|
banned <- maybe (pure False) (peerBanned pip) pd
|
||||||
let known = isJust pd && not banned
|
let known = isJust pd && not banned
|
||||||
unless known $ sendPing pip
|
sendPing pip
|
||||||
|
|
||||||
subscribe @e BlockAnnounceInfoKey $ \(BlockAnnounceEvent p bi no) -> do
|
subscribe @e BlockAnnounceInfoKey $ \(BlockAnnounceEvent p bi no) -> do
|
||||||
pa <- toPeerAddr p
|
pa <- toPeerAddr p
|
||||||
|
|
Loading…
Reference in New Issue