aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-19 02:44:17 +0800
committerobscuren <geffobscura@gmail.com>2014-11-19 02:44:17 +0800
commitf8d0cd9906a1ec4a4a1e95868a279312363f8b49 (patch)
tree04bb1876142343c69a3542d0dbebe7cbefd68105 /peer.go
parenta1b6a9ac29d0aa8d29a2c0535bafdb5fe4d4830b (diff)
downloaddexon-f8d0cd9906a1ec4a4a1e95868a279312363f8b49.tar
dexon-f8d0cd9906a1ec4a4a1e95868a279312363f8b49.tar.gz
dexon-f8d0cd9906a1ec4a4a1e95868a279312363f8b49.tar.bz2
dexon-f8d0cd9906a1ec4a4a1e95868a279312363f8b49.tar.lz
dexon-f8d0cd9906a1ec4a4a1e95868a279312363f8b49.tar.xz
dexon-f8d0cd9906a1ec4a4a1e95868a279312363f8b49.tar.zst
dexon-f8d0cd9906a1ec4a4a1e95868a279312363f8b49.zip
Added a callback mechanism to chain adding.
Not sure if this is the right approach. Why? BlockChain shouldn't need the "Ethereum" object. BlockChain shouldn't need to worry about notifying listeners or message propagation.
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/peer.go b/peer.go
index fa73da21a..ff3593604 100644
--- a/peer.go
+++ b/peer.go
@@ -11,6 +11,7 @@ import (
"strings"
"sync/atomic"
"time"
+
"github.com/ethereum/go-ethereum/chain/types"
"github.com/ethereum/go-ethereum/ethutil"
"github.com/ethereum/go-ethereum/logger"
@@ -23,7 +24,7 @@ const (
// The size of the output buffer for writing messages
outputBufferSize = 50
// Current protocol version
- ProtocolVersion = 42
+ ProtocolVersion = 43
// Current P2P version
P2PVersion = 2
// Ethereum network version