Skip to content

Commit 3051711

Browse files
authored
chore: revert stopping the p2p connection on received invalid have part (#2640)
This is temporarily not disconnecting from peers who send invalid have parts until this is worked on #2211
1 parent 645a7b0 commit 3051711

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

consensus/propagation/have_wants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (blockProp *Reactor) handleHaves(peer p2p.ID, haves *proptypes.HaveParts) {
5656
err := haves.ValidatePartHashes(cb.PartsHashes)
5757
if err != nil {
5858
blockProp.Logger.Error("received invalid have part", "height", haves.Height, "round", haves.Round, "err", err)
59-
blockProp.Switch.StopPeerForError(p.peer, err, blockProp.String())
59+
//blockProp.Switch.StopPeerForError(p.peer, err, blockProp.String())
6060
return
6161
}
6262

consensus/propagation/have_wants_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
)
1616

1717
func TestInvalidHavePartHash(t *testing.T) {
18+
t.Skip("skipping TestInvalidHavePartHash until the issue is fixed")
1819
p2pCfg := cfg.DefaultP2PConfig()
1920
nodes := 2
2021
reactors, _ := createTestReactors(nodes, p2pCfg, false, "")

0 commit comments

Comments
 (0)