Skip to content
Open
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
1 change: 1 addition & 0 deletions services/blockvalidation/BlockValidation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3079,6 +3079,7 @@ func TestBlockValidation_OptimisticMining_InValidBlock(t *testing.T) {
mockBlockchain.On("SetBlockSubtreesSet", mock.Anything, mock.Anything).Return(nil)
mockBlockchain.On("GetBestBlockHeader", mock.Anything).Return(&model.BlockHeader{}, &model.BlockHeaderMeta{Height: 100}, nil)

mockBlockchain.On("ReValidateBlock", mock.Anything, mock.Anything).Return()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mock line is incorrect and unnecessary. ReValidateBlock is a method on BlockValidation itself (BlockValidation.go:1631), not on the blockchain client interface. The blockchain interface has RevalidateBlock (lowercase v) at Interface.go:508. Remove this line.

txMetaStore, subtreeValidationClient, _, txStore, subtreeStore, deferFunc := setup(t)
defer deferFunc()

Expand Down
Loading