aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <obscuren@users.noreply.github.com>2014-02-19 18:36:23 +0800
committerJeffrey Wilcke <obscuren@users.noreply.github.com>2014-02-19 18:36:23 +0800
commit1e241e3a614c2f9a76681cd3f311653c0cc432c8 (patch)
tree04c05ed4b66684c1a43828818026246cf5652448
parentbbcf304b99b6bc9e2a2a8f49cda5e5b77917dd0a (diff)
parent6dac014978d30883aa556c004f948e66a314d2de (diff)
downloadgo-tangerine-1e241e3a614c2f9a76681cd3f311653c0cc432c8.tar
go-tangerine-1e241e3a614c2f9a76681cd3f311653c0cc432c8.tar.gz
go-tangerine-1e241e3a614c2f9a76681cd3f311653c0cc432c8.tar.bz2
go-tangerine-1e241e3a614c2f9a76681cd3f311653c0cc432c8.tar.lz
go-tangerine-1e241e3a614c2f9a76681cd3f311653c0cc432c8.tar.xz
go-tangerine-1e241e3a614c2f9a76681cd3f311653c0cc432c8.tar.zst
go-tangerine-1e241e3a614c2f9a76681cd3f311653c0cc432c8.zip
Merge pull request #7 from sdboyer/vet-fixes
Fix a couple errors from go vet
-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()