mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 17:22:18 +00:00
14 lines
308 B
Go
14 lines
308 B
Go
|
package blst
|
||
|
|
||
|
// Note: These functions are for tests to access private globals, such as pubkeyCache.
|
||
|
|
||
|
// DisableCaches sets the cache sizes to 0.
|
||
|
func DisableCaches() {
|
||
|
pubkeyCache.Resize(0)
|
||
|
}
|
||
|
|
||
|
// EnableCaches sets the cache sizes to the default values.
|
||
|
func EnableCaches() {
|
||
|
pubkeyCache.Resize(maxKeys)
|
||
|
}
|