diff options
author | obscuren <geffobscura@gmail.com> | 2014-11-19 02:44:17 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-11-19 02:44:17 +0800 |
commit | f8d0cd9906a1ec4a4a1e95868a279312363f8b49 (patch) | |
tree | 04bb1876142343c69a3542d0dbebe7cbefd68105 /peer.go | |
parent | a1b6a9ac29d0aa8d29a2c0535bafdb5fe4d4830b (diff) | |
download | go-tangerine-f8d0cd9906a1ec4a4a1e95868a279312363f8b49.tar go-tangerine-f8d0cd9906a1ec4a4a1e95868a279312363f8b49.tar.gz go-tangerine-f8d0cd9906a1ec4a4a1e95868a279312363f8b49.tar.bz2 go-tangerine-f8d0cd9906a1ec4a4a1e95868a279312363f8b49.tar.lz go-tangerine-f8d0cd9906a1ec4a4a1e95868a279312363f8b49.tar.xz go-tangerine-f8d0cd9906a1ec4a4a1e95868a279312363f8b49.tar.zst go-tangerine-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.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |