mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
Remove validator count log (#14600)
* remove validator count API call and update logs * fixing test * changelog * removing unused function * gaz * casing * fixing more tests
This commit is contained in:
@@ -806,7 +806,7 @@ func TestCheckAndLogValidatorStatus_OK(t *testing.T) {
|
||||
PositionInActivationQueue: 30,
|
||||
},
|
||||
},
|
||||
log: "Deposit processed, entering activation queue after finalization\" positionInActivationQueue=30 prefix=client pubkey=0x000000000000 status=DEPOSITED validatorIndex=30",
|
||||
log: "Validator deposited, entering activation queue after finalization\" prefix=client pubkey=0x000000000000 status=DEPOSITED validatorIndex=30",
|
||||
active: false,
|
||||
},
|
||||
{
|
||||
@@ -820,21 +820,7 @@ func TestCheckAndLogValidatorStatus_OK(t *testing.T) {
|
||||
PositionInActivationQueue: 6,
|
||||
},
|
||||
},
|
||||
log: "Waiting to be assigned activation epoch\" expectedWaitingTime=12m48s positionInActivationQueue=6 prefix=client pubkey=0x000000000000 status=PENDING validatorIndex=50",
|
||||
active: false,
|
||||
},
|
||||
{
|
||||
name: "PENDING",
|
||||
status: &validatorStatus{
|
||||
publicKey: pubKeys[0],
|
||||
index: 89,
|
||||
status: ðpb.ValidatorStatusResponse{
|
||||
Status: ethpb.ValidatorStatus_PENDING,
|
||||
ActivationEpoch: 60,
|
||||
PositionInActivationQueue: 5,
|
||||
},
|
||||
},
|
||||
log: "Waiting for activation\" activationEpoch=60 prefix=client pubkey=0x000000000000 status=PENDING validatorIndex=89",
|
||||
log: "Waiting for activation... Check validator queue status in a block explorer\" prefix=client pubkey=0x000000000000 status=PENDING validatorIndex=50",
|
||||
active: false,
|
||||
},
|
||||
{
|
||||
@@ -889,7 +875,7 @@ func TestCheckAndLogValidatorStatus_OK(t *testing.T) {
|
||||
pubkeyToStatus: make(map[[48]byte]*validatorStatus),
|
||||
}
|
||||
v.pubkeyToStatus[bytesutil.ToBytes48(test.status.publicKey)] = test.status
|
||||
active := v.checkAndLogValidatorStatus(100)
|
||||
active := v.checkAndLogValidatorStatus()
|
||||
require.Equal(t, test.active, active)
|
||||
if test.log != "" {
|
||||
require.LogsContain(t, hook, test.log)
|
||||
|
||||
Reference in New Issue
Block a user