From 57d7207554754511985fd32228cece52abcec2d0 Mon Sep 17 00:00:00 2001 From: int88 <106391185+int88@users.noreply.github.com> Date: Mon, 24 Oct 2022 06:01:44 +0800 Subject: [PATCH] fix typo and log error (#11565) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Radosław Kapka --- beacon-chain/db/iface/interface.go | 4 ++-- testing/util/block.go | 2 +- testing/util/block_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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()) } }