diff --git a/beacon-chain/db/iface/interface.go b/beacon-chain/db/iface/interface.go index 89453feea..21bb47974 100644 --- a/beacon-chain/db/iface/interface.go +++ b/beacon-chain/db/iface/interface.go @@ -51,7 +51,7 @@ type ReadOnlyDatabase interface { DepositContractAddress(ctx context.Context) ([]byte, error) // ExecutionChainData operations. ExecutionChainData(ctx context.Context) (*ethpb.ETH1ChainData, error) - // Fee reicipients operations. + // Fee recipients operations. FeeRecipientByValidatorID(ctx context.Context, id types.ValidatorIndex) (common.Address, error) RegistrationByValidatorID(ctx context.Context, id types.ValidatorIndex) (*ethpb.ValidatorRegistrationV1, error) // origin checkpoint sync support @@ -85,7 +85,7 @@ type NoHeadAccessDatabase interface { SaveExecutionChainData(ctx context.Context, data *ethpb.ETH1ChainData) error // Run any required database migrations. RunMigrations(ctx context.Context) error - // Fee reicipients operations. + // Fee recipients operations. SaveFeeRecipientsByValidatorIDs(ctx context.Context, ids []types.ValidatorIndex, addrs []common.Address) error SaveRegistrationsByValidatorIDs(ctx context.Context, ids []types.ValidatorIndex, regs []*ethpb.ValidatorRegistrationV1) error diff --git a/testing/util/block.go b/testing/util/block.go index 35bdccc31..450e2e47a 100644 --- a/testing/util/block.go +++ b/testing/util/block.go @@ -137,7 +137,7 @@ func GenerateFullBlock( if numToGen > 0 { exits, err = generateVoluntaryExits(bState, privs, numToGen) if err != nil { - return nil, errors.Wrapf(err, "failed generating %d attester slashings:", numToGen) + return nil, errors.Wrapf(err, "failed generating %d voluntary exits:", numToGen) } } diff --git a/testing/util/block_test.go b/testing/util/block_test.go index f4c66315a..b0741e2ac 100644 --- a/testing/util/block_test.go +++ b/testing/util/block_test.go @@ -72,7 +72,7 @@ func TestGenerateFullBlock_Passes4Epochs(t *testing.T) { t.Fatalf("expected justified epoch to change to 3, received %d", beaconState.CurrentJustifiedCheckpoint().Epoch) } if beaconState.FinalizedCheckpointEpoch() != 2 { - t.Fatalf("expected finalized epoch to change to 2, received %d", beaconState.CurrentJustifiedCheckpoint().Epoch) + t.Fatalf("expected finalized epoch to change to 2, received %d", beaconState.FinalizedCheckpointEpoch()) } }