Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions core/vm/lightclient/v2/lightclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func TestEncodeConsensusState(t *testing.T) {
require.NoError(t, err)

if !bytes.Equal(csBytes, expectCsBytes) {
t.Fatalf("Consensus state mimatch, expect: %s, real:%s\n", testcase.consensusStateBytes, hex.EncodeToString(csBytes))
t.Fatalf("Consensus state mismatch, expect: %s, real:%s\n", testcase.consensusStateBytes, hex.EncodeToString(csBytes))
}
}
}
Expand All @@ -148,11 +148,11 @@ func TestDecodeConsensusState(t *testing.T) {
require.NoError(t, err)

if cs.ChainID != testcase.chainID {
t.Fatalf("Chain ID mimatch, expect: %s, real:%s\n", testcase.chainID, cs.ChainID)
t.Fatalf("Chain ID mismatch, expect: %s, real:%s\n", testcase.chainID, cs.ChainID)
}

if cs.Height != testcase.height {
t.Fatalf("Height mimatch, expect: %d, real:%d\n", testcase.height, cs.Height)
t.Fatalf("Height mismatch, expect: %d, real:%d\n", testcase.height, cs.Height)
}

nextValidatorSetHashBytes, err := hex.DecodeString(testcase.nextValidatorSetHash)
Expand All @@ -161,7 +161,7 @@ func TestDecodeConsensusState(t *testing.T) {
}

if !bytes.Equal(cs.NextValidatorSetHash, nextValidatorSetHashBytes) {
t.Fatalf("Next validator set hash mimatch, expect: %s, real:%s\n", testcase.nextValidatorSetHash, hex.EncodeToString(cs.NextValidatorSetHash))
t.Fatalf("Next validator set hash mismatch, expect: %s, real:%s\n", testcase.nextValidatorSetHash, hex.EncodeToString(cs.NextValidatorSetHash))
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion eth/fetcher/block_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ func (f *BlockFetcher) loop() {
}
case entry := <-f.quickBlockFetchingCh:
annHash := entry.announce.hash
// if there is error or timeout, and the shcedule have not started, just retry the fetch
// if there is error or timeout, and the schedule have not started, just retry the fetch
if entry.err != nil {
quickBlockFetchingErrMeter.Mark(1)
log.Debug("Quick block fetching err", "hash", annHash, "err", entry.err)
Expand Down