mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
eth/downloader: disabled peer dropping
@karalabe you need to take a good look at this
This commit is contained in:
parent
9addb3df3a
commit
718bbc1a2e
2 changed files with 4 additions and 2 deletions
|
|
@ -243,8 +243,9 @@ func (d *Downloader) Synchronise(id string, head common.Hash) {
|
|||
glog.V(logger.Detail).Infof("Synchronisation already in progress")
|
||||
|
||||
case errTimeout, errBadPeer, errStallingPeer, errBannedHead, errEmptyHashSet, errPeersUnavailable, errInvalidChain, errCrossCheckFailed:
|
||||
glog.V(logger.Debug).Infof("Removing peer %v: %v", id, err)
|
||||
d.dropPeer(id)
|
||||
glog.V(logger.Debug).Infof("Potential peer %v error: %v", id, err)
|
||||
//glog.V(logger.Debug).Infof("Removing peer %v: %v", id, err)
|
||||
//d.dropPeer(id)
|
||||
|
||||
case errPendingQueue:
|
||||
glog.V(logger.Debug).Infoln("Synchronisation aborted:", err)
|
||||
|
|
|
|||
|
|
@ -814,6 +814,7 @@ func TestHighTDStarvationAttack61(t *testing.T) {
|
|||
|
||||
// Tests that misbehaving peers are disconnected, whilst behaving ones are not.
|
||||
func TestHashAttackerDropping(t *testing.T) {
|
||||
t.Skip("@karabale needs to have a look at this")
|
||||
// Define the disconnection requirement for individual hash fetch errors
|
||||
tests := []struct {
|
||||
result error
|
||||
|
|
|
|||
Loading…
Reference in a new issue