mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 11:32:09 +00:00
4b4e213a24
* Pre-populate bls pubkey cache as part of state gen's Resume function. This adds some helpers and a benchmark to blst * Do it async * fix missing import * lint --------- Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> Co-authored-by: rauljordan <raul@prysmaticlabs.com>
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)
|
|
}
|