File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change 17
17
package filtermaps
18
18
19
19
import (
20
- "sync"
21
-
22
20
"github.com/ethereum/go-ethereum/common"
23
21
"github.com/ethereum/go-ethereum/core/types"
24
22
"github.com/ethereum/go-ethereum/log"
@@ -41,7 +39,6 @@ type blockchain interface {
41
39
// of the underlying blockchain, it should only possess the block headers
42
40
// and receipts up until the expected chain view head.
43
41
type ChainView struct {
44
- lock sync.Mutex
45
42
chain blockchain
46
43
headNumber uint64
47
44
hashes []common.Hash // block hashes starting backwards from headNumber until first canonical hash
@@ -150,9 +147,6 @@ func (cv *ChainView) extendNonCanonical() bool {
150
147
151
148
// blockHash returns the given block hash without doing the head number check.
152
149
func (cv * ChainView ) blockHash (number uint64 ) common.Hash {
153
- cv .lock .Lock ()
154
- defer cv .lock .Unlock ()
155
-
156
150
if number + uint64 (len (cv .hashes )) <= cv .headNumber {
157
151
hash := cv .chain .GetCanonicalHash (number )
158
152
if ! cv .extendNonCanonical () {
You can’t perform that action at this time.
0 commit comments