X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=netsync%2Fconsensusmgr%2Fblock_fetcher.go;h=dc429236db9fc86286800950548b88972f91abb4;hp=3b6c746a40bb6212a3ee98b7186a8b3663b68b5f;hb=807d99726f6a0610fa9c835e2aabd983801d3510;hpb=aa87732ffe2e2418d8f1ae37da388ecf73e59621 diff --git a/netsync/consensusmgr/block_fetcher.go b/netsync/consensusmgr/block_fetcher.go index 3b6c746a..dc429236 100644 --- a/netsync/consensusmgr/block_fetcher.go +++ b/netsync/consensusmgr/block_fetcher.go @@ -5,6 +5,7 @@ import ( "gopkg.in/karalabe/cookiejar.v2/collections/prque" "github.com/vapor/netsync/peers" + "github.com/vapor/p2p/security" "github.com/vapor/protocol/bc" ) @@ -80,7 +81,7 @@ func (f *blockFetcher) insert(msg *blockMsg) { return } - f.peers.AddBanScore(msg.peerID, 20, 0, err.Error()) + f.peers.ProcessIllegal(msg.peerID, security.LevelMsgIllegal, err.Error()) return }