aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/downloader_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-01-31 18:46:38 +0800
committerGitHub <noreply@github.com>2018-01-31 18:46:38 +0800
commitfdb34b7a7c87142cde48a2ec092f77a56d66f773 (patch)
tree6608a33f95d5067d23f01c6951eca3f983c3566d /eth/downloader/downloader_test.go
parent07d4a022573444eac0db2f5da500cc5ee1e940bb (diff)
parent566d5c0777c2c5ee1a8fe3c0aee1e5c8c69053e2 (diff)
downloaddexon-fdb34b7a7c87142cde48a2ec092f77a56d66f773.tar
dexon-fdb34b7a7c87142cde48a2ec092f77a56d66f773.tar.gz
dexon-fdb34b7a7c87142cde48a2ec092f77a56d66f773.tar.bz2
dexon-fdb34b7a7c87142cde48a2ec092f77a56d66f773.tar.lz
dexon-fdb34b7a7c87142cde48a2ec092f77a56d66f773.tar.xz
dexon-fdb34b7a7c87142cde48a2ec092f77a56d66f773.tar.zst
dexon-fdb34b7a7c87142cde48a2ec092f77a56d66f773.zip
Merge pull request #15996 from karalabe/drop-redundant-methods
core, eth, les, light: get rid of redundant methods
Diffstat (limited to 'eth/downloader/downloader_test.go')
-rw-r--r--eth/downloader/downloader_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go
index ad5a62c48..e9c7b6170 100644
--- a/eth/downloader/downloader_test.go
+++ b/eth/downloader/downloader_test.go
@@ -299,8 +299,8 @@ func (dl *downloadTester) FastSyncCommitHead(hash common.Hash) error {
return fmt.Errorf("non existent block: %x", hash[:4])
}
-// GetTdByHash retrieves the block's total difficulty from the canonical chain.
-func (dl *downloadTester) GetTdByHash(hash common.Hash) *big.Int {
+// GetTd retrieves the block's total difficulty from the canonical chain.
+func (dl *downloadTester) GetTd(hash common.Hash, number uint64) *big.Int {
dl.lock.RLock()
defer dl.lock.RUnlock()