diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-06-09 19:56:27 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-06-09 19:56:27 +0800 |
commit | f86707713c42da02b70a3a389684e19e902d8759 (patch) | |
tree | 0eb22642f83961147bfef44453b9398bd5409cfd /eth/sync.go | |
parent | 44147d057dd91d8b35dd6f4ed025bdb4baf225eb (diff) | |
download | dexon-f86707713c42da02b70a3a389684e19e902d8759.tar.gz dexon-f86707713c42da02b70a3a389684e19e902d8759.tar.zst dexon-f86707713c42da02b70a3a389684e19e902d8759.zip |
eth: fix data race accessing peer.td
Diffstat (limited to 'eth/sync.go')
-rw-r--r-- | eth/sync.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/sync.go b/eth/sync.go index b3184364f..3a33fe149 100644 --- a/eth/sync.go +++ b/eth/sync.go @@ -208,7 +208,7 @@ func (pm *ProtocolManager) synchronise(peer *peer) { return } // Make sure the peer's TD is higher than our own. If not drop. - if peer.td.Cmp(pm.chainman.Td()) <= 0 { + if peer.Td().Cmp(pm.chainman.Td()) <= 0 { return } // FIXME if we have the hash in our chain and the TD of the peer is |