aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorSam Boyer <tech@samboyer.org>2014-02-18 23:47:09 +0800
committerSam Boyer <tech@samboyer.org>2014-02-18 23:47:09 +0800
commit6dac014978d30883aa556c004f948e66a314d2de (patch)
tree04c05ed4b66684c1a43828818026246cf5652448 /peer.go
parentbbcf304b99b6bc9e2a2a8f49cda5e5b77917dd0a (diff)
downloaddexon-6dac014978d30883aa556c004f948e66a314d2de.tar
dexon-6dac014978d30883aa556c004f948e66a314d2de.tar.gz
dexon-6dac014978d30883aa556c004f948e66a314d2de.tar.bz2
dexon-6dac014978d30883aa556c004f948e66a314d2de.tar.lz
dexon-6dac014978d30883aa556c004f948e66a314d2de.tar.xz
dexon-6dac014978d30883aa556c004f948e66a314d2de.tar.zst
dexon-6dac014978d30883aa556c004f948e66a314d2de.zip
Fix a couple errors from go vet
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/peer.go b/peer.go
index 53fdfa8fc..95b526c67 100644
--- a/peer.go
+++ b/peer.go
@@ -285,7 +285,6 @@ func (p *Peer) HandleInbound() {
p.lastPong = time.Now().Unix()
case ethwire.MsgBlockTy:
// Get all blocks and process them
- msg.Data = msg.Data
var block, lastBlock *ethchain.Block
var err error
for i := msg.Data.Len() - 1; i >= 0; i-- {
@@ -438,7 +437,7 @@ func (p *Peer) Start() {
err := p.pushHandshake()
if err != nil {
- log.Printf("Peer can't send outbound version ack", err)
+ log.Println("Peer can't send outbound version ack", err)
p.Stop()