mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
testing something
This commit is contained in:
parent
b1495ab367
commit
830788e792
1 changed files with 4 additions and 4 deletions
|
|
@ -17,7 +17,7 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func addCache(precompile common.Address, input, output []byte) {
|
func addCache(precompile common.Address, input, output []byte) {
|
||||||
/*
|
|
||||||
mu.Lock()
|
mu.Lock()
|
||||||
defer mu.Unlock()
|
defer mu.Unlock()
|
||||||
cache, ok := caches[precompile]
|
cache, ok := caches[precompile]
|
||||||
|
|
@ -26,12 +26,12 @@ func addCache(precompile common.Address, input, output []byte) {
|
||||||
caches[precompile] = cache
|
caches[precompile] = cache
|
||||||
}
|
}
|
||||||
cache.Add(string(input), output)
|
cache.Add(string(input), output)
|
||||||
*/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func getCache(precompile common.Address, input []byte) ([]byte, bool) {
|
func getCache(precompile common.Address, input []byte) ([]byte, bool) {
|
||||||
/*
|
|
||||||
mu.RLock()
|
mu.RLock()
|
||||||
defer mu.RUnlock()
|
defer mu.RUnlock()
|
||||||
cache, ok := caches[precompile]
|
cache, ok := caches[precompile]
|
||||||
|
|
@ -40,6 +40,6 @@ func getCache(precompile common.Address, input []byte) ([]byte, bool) {
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
return cache.Get(string(input))
|
return cache.Get(string(input))
|
||||||
*/
|
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue