aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/ethereum.go b/ethereum.go
index 5fb3f2909..013214726 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -69,6 +69,8 @@ type Ethereum struct {
Addr net.Addr
Port string
+ blacklist [][]byte
+
peerMut sync.Mutex
// Capabilities for outgoing peers
@@ -211,6 +213,10 @@ func (s *Ethereum) HighestTDPeer() (td *big.Int) {
return
}
+func (self *Ethereum) BlacklistPeer(peer *Peer) {
+ self.blacklist = append(self.blacklist, peer.pubkey)
+}
+
func (s *Ethereum) AddPeer(conn net.Conn) {
peer := NewPeer(conn, s, true)