diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-07-09 01:59:11 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-07-15 21:52:55 +0800 |
commit | 7f00e8c0331bf13739e749bab88bf9006ca02f96 (patch) | |
tree | 80205e861b7c510a2d3d6e432bed09badfef57fa /eth/peer.go | |
parent | a87089fd2dc08a69a4a4f1ef93db9a2871d819a3 (diff) | |
download | go-tangerine-7f00e8c0331bf13739e749bab88bf9006ca02f96.tar.gz go-tangerine-7f00e8c0331bf13739e749bab88bf9006ca02f96.tar.zst go-tangerine-7f00e8c0331bf13739e749bab88bf9006ca02f96.zip |
core, eth: enforce network split post DAO hard-fork
Diffstat (limited to 'eth/peer.go')
-rw-r--r-- | eth/peer.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/eth/peer.go b/eth/peer.go index 8eb41b0f9..b97825c69 100644 --- a/eth/peer.go +++ b/eth/peer.go @@ -59,10 +59,12 @@ type peer struct { *p2p.Peer rw p2p.MsgReadWriter - version int // Protocol version negotiated - head common.Hash - td *big.Int - lock sync.RWMutex + version int // Protocol version negotiated + forkDrop *time.Timer // Timed connection dropper if forks aren't validated in time + + head common.Hash + td *big.Int + lock sync.RWMutex knownTxs *set.Set // Set of transaction hashes known to be known by this peer knownBlocks *set.Set // Set of block hashes known to be known by this peer |