diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-08 02:07:20 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-08 02:07:20 +0800 |
commit | 9d188f73b58ee1fe4bda00a9536bda4056755f2c (patch) | |
tree | f9f9361b8440865a890df900ea7f7986ba169098 /eth/downloader/downloader_test.go | |
parent | 43901c92825389b694fb5488c520cf5122f022de (diff) | |
download | dexon-9d188f73b58ee1fe4bda00a9536bda4056755f2c.tar.gz dexon-9d188f73b58ee1fe4bda00a9536bda4056755f2c.tar.zst dexon-9d188f73b58ee1fe4bda00a9536bda4056755f2c.zip |
eth, eth/downloader: make synchronize thread safe
Diffstat (limited to 'eth/downloader/downloader_test.go')
-rw-r--r-- | eth/downloader/downloader_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go index bd439d96a..f3402794b 100644 --- a/eth/downloader/downloader_test.go +++ b/eth/downloader/downloader_test.go @@ -61,7 +61,7 @@ func newTester(t *testing.T, hashes []common.Hash, blocks map[common.Hash]*types func (dl *downloadTester) sync(peerId string, hash common.Hash) error { dl.activePeerId = peerId - return dl.downloader.Synchronise(peerId, hash) + return dl.downloader.Synchronize(peerId, hash) } func (dl *downloadTester) hasBlock(hash common.Hash) bool { |