mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
looking at ways to reduce validator registration calls (#14371)
* looking at ways to reduce validator registration calls * small mistake, should be epoch start * adding more optimizations for reducing registration calls while covering more edgecases * linting * adding change log and force full push override * fixing bug and adding tests * changing if statement just to be safe * potuz feedback for easier readability * more review feedback for simplicity * more review suggestions from potuz * fix unit test * reduce redundancy * Update CHANGELOG.md Co-authored-by: Radosław Kapka <rkapka@wp.pl> * small nitpick * fixing typo * updating logs --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
@@ -36,6 +36,7 @@ func TestValidator_HandleKeyReload(t *testing.T) {
|
||||
genesisTime: 1,
|
||||
chainClient: chainClient,
|
||||
prysmChainClient: prysmChainClient,
|
||||
pubkeyToStatus: make(map[[fieldparams.BLSPubkeyLength]byte]*validatorStatus),
|
||||
}
|
||||
|
||||
resp := testutil.GenerateMultipleValidatorStatusResponse([][]byte{inactive.pub[:], active.pub[:]})
|
||||
@@ -73,6 +74,7 @@ func TestValidator_HandleKeyReload(t *testing.T) {
|
||||
genesisTime: 1,
|
||||
chainClient: chainClient,
|
||||
prysmChainClient: prysmChainClient,
|
||||
pubkeyToStatus: make(map[[fieldparams.BLSPubkeyLength]byte]*validatorStatus),
|
||||
}
|
||||
|
||||
resp := testutil.GenerateMultipleValidatorStatusResponse([][]byte{kp.pub[:]})
|
||||
@@ -103,6 +105,7 @@ func TestValidator_HandleKeyReload(t *testing.T) {
|
||||
validatorClient: client,
|
||||
km: newMockKeymanager(t, kp),
|
||||
genesisTime: 1,
|
||||
pubkeyToStatus: make(map[[fieldparams.BLSPubkeyLength]byte]*validatorStatus),
|
||||
}
|
||||
|
||||
client.EXPECT().MultipleValidatorStatus(
|
||||
|
||||
Reference in New Issue
Block a user