aboutsummaryrefslogtreecommitdiffstats
path: root/light
diff options
context:
space:
mode:
Diffstat (limited to 'light')
-rw-r--r--light/lightchain.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/light/lightchain.go b/light/lightchain.go
index 7f64d1c28..9529c2e1b 100644
--- a/light/lightchain.go
+++ b/light/lightchain.go
@@ -438,9 +438,6 @@ func (lc *LightChain) GetBlockHashesFromHash(hash common.Hash, max uint64) []com
//
// Note: ancestor == 0 returns the same block, 1 returns its parent and so on.
func (lc *LightChain) GetAncestor(hash common.Hash, number, ancestor uint64, maxNonCanonical *uint64) (common.Hash, uint64) {
- lc.chainmu.RLock()
- defer lc.chainmu.RUnlock()
-
return lc.hc.GetAncestor(hash, number, ancestor, maxNonCanonical)
}