{"action":"opened","issue":{"url":"https://api.github.com/repos/btcsuite/btcd/issues/1042","repository_url":"https://api.github.com/repos/btcsuite/btcd","labels_url":"https://api.github.com/repos/btcsuite/btcd/issues/1042/labels{/name}","comments_url":"https://api.github.com/repos/btcsuite/btcd/issues/1042/comments","events_url":"https://api.github.com/repos/btcsuite/btcd/issues/1042/events","html_url":"https://github.com/btcsuite/btcd/issues/1042","id":254229442,"number":1042,"title":"Refactor: Move banning logic into peer package","user":{"login":"jimpo","id":881253,"avatar_url":"https://avatars3.githubusercontent.com/u/881253?v=4","gravatar_id":"","url":"https://api.github.com/users/jimpo","html_url":"https://github.com/jimpo","followers_url":"https://api.github.com/users/jimpo/followers","following_url":"https://api.github.com/users/jimpo/following{/other_user}","gists_url":"https://api.github.com/users/jimpo/gists{/gist_id}","starred_url":"https://api.github.com/users/jimpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimpo/subscriptions","organizations_url":"https://api.github.com/users/jimpo/orgs","repos_url":"https://api.github.com/users/jimpo/repos","events_url":"https://api.github.com/users/jimpo/events{/privacy}","received_events_url":"https://api.github.com/users/jimpo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-31T06:40:50Z","updated_at":"2017-08-31T06:40:50Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"In an attempt to remove code from `server.go` and from the `serverPeer` struct specifically, I think it makes sense to move `addBanScore` from `serverPeer` to a public method `IncreaseBanScore` on `peer.Peer`. Furthermore, we should move `dynamicbanscore.go` and the associated test from the `connmgr` package to the `peer` package.\r\n\r\nThoughts on this?"}}
{"actor":{"display_login":"jimpo"}}