From dbcec85f63d1585b97d5b7023a83a608a604e61e Mon Sep 17 00:00:00 2001 From: Potuz Date: Fri, 3 Dec 2021 15:36:02 -0300 Subject: [PATCH] typos --- beacon-chain/monitor/process_block.go | 4 ++-- beacon-chain/monitor/process_block_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon-chain/monitor/process_block.go b/beacon-chain/monitor/process_block.go index db1a35712b7b..d55dba1eee89 100644 --- a/beacon-chain/monitor/process_block.go +++ b/beacon-chain/monitor/process_block.go @@ -109,7 +109,7 @@ func (s *Service) processSlashings(blk block.BeaconBlock) { if s.trackedIndex(idx) { log.WithFields(logrus.Fields{ "ProposerIndex": idx, - "Slot:": blk.Slot(), + "Slot": blk.Slot(), "SlashingSlot": slashing.Header_1.Header.Slot, "Root1": fmt.Sprintf("%#x", bytesutil.Trunc(slashing.Header_1.Header.BodyRoot)), "Root2": fmt.Sprintf("%#x", bytesutil.Trunc(slashing.Header_2.Header.BodyRoot)), @@ -122,7 +122,7 @@ func (s *Service) processSlashings(blk block.BeaconBlock) { if s.trackedIndex(types.ValidatorIndex(idx)) { log.WithFields(logrus.Fields{ "AttesterIndex": idx, - "Slot:": blk.Slot(), + "Slot": blk.Slot(), "Slot1": slashing.Attestation_1.Data.Slot, "Root1": fmt.Sprintf("%#x", bytesutil.Trunc(slashing.Attestation_1.Data.BeaconBlockRoot)), "SourceEpoch1": slashing.Attestation_1.Data.Source.Epoch, diff --git a/beacon-chain/monitor/process_block_test.go b/beacon-chain/monitor/process_block_test.go index 2bd4270d6daf..ff694703bbc5 100644 --- a/beacon-chain/monitor/process_block_test.go +++ b/beacon-chain/monitor/process_block_test.go @@ -219,7 +219,7 @@ func TestProcessBlock_AllEventsTrackedVals(t *testing.T) { require.NoError(t, err) require.NoError(t, s.config.StateGen.SaveState(ctx, root, genesis)) wanted1 := fmt.Sprintf("\"Proposed block was included\" BalanceChange=100000000 BlockRoot=%#x NewBalance=32000000000 ParentRoot=0xf732eaeb7fae ProposerIndex=15 Slot=1 Version=1 prefix=monitor", bytesutil.Trunc(root[:])) - wanted2 := fmt.Sprintf("\"Proposer slashing was included\" ProposerIndex=%d Root1=0x000100000000 Root2=0x000200000000 SlashingSlot=0 Slot:=1 prefix=monitor", idx) + wanted2 := fmt.Sprintf("\"Proposer slashing was included\" ProposerIndex=%d Root1=0x000100000000 Root2=0x000200000000 SlashingSlot=0 Slot=1 prefix=monitor", idx) wanted3 := "\"Sync committee contribution included\" BalanceChange=0 Contributions=3 ExpectedContrib=3 NewBalance=32000000000 ValidatorIndex=1 prefix=monitor" wanted4 := "\"Sync committee contribution included\" BalanceChange=0 Contributions=1 ExpectedContrib=1 NewBalance=32000000000 ValidatorIndex=2 prefix=monitor" wrapped, err := wrapper.WrappedAltairSignedBeaconBlock(b)