From 15b3f97e5422ace9fb0bdfd9dd1b33694f8ed084 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 9 Feb 2024 16:58:41 +0300 Subject: [PATCH] *: fix linter issues Some issues are found in the old files by the updated linter job. Signed-off-by: Anna Shaleva --- config.go | 12 ++++++------ dbft_test.go | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/config.go b/config.go index 39807759..bdd803b2 100644 --- a/config.go +++ b/config.go @@ -99,14 +99,14 @@ func defaultConfig() *Config { TimestampIncrement: defaultTimestampIncrement, GetKeyPair: nil, NewBlockFromContext: NewBlockFromContext, - RequestTx: func(h ...util.Uint256) {}, + RequestTx: func(...util.Uint256) {}, StopTxFlow: func() {}, - GetTx: func(h util.Uint256) block.Transaction { return nil }, + GetTx: func(util.Uint256) block.Transaction { return nil }, GetVerified: func() []block.Transaction { return make([]block.Transaction, 0) }, - VerifyBlock: func(b block.Block) bool { return true }, - Broadcast: func(m payload.ConsensusPayload) {}, - ProcessBlock: func(b block.Block) {}, - GetBlock: func(h util.Uint256) block.Block { return nil }, + VerifyBlock: func(block.Block) bool { return true }, + Broadcast: func(payload.ConsensusPayload) {}, + ProcessBlock: func(block.Block) {}, + GetBlock: func(util.Uint256) block.Block { return nil }, WatchOnly: func() bool { return false }, CurrentHeight: nil, CurrentBlockHash: nil, diff --git a/dbft_test.go b/dbft_test.go index de94b574..9ec9eddf 100644 --- a/dbft_test.go +++ b/dbft_test.go @@ -790,7 +790,7 @@ func (s *testState) getOptions() []Option { WithProcessBlock(func(b block.Block) { s.blocks = append(s.blocks, b) }), WithGetConsensusAddress(s.nextConsensus), WithWatchOnly(func() bool { return false }), - WithGetBlock(func(h util.Uint256) block.Block { return nil }), + WithGetBlock(func(util.Uint256) block.Block { return nil }), WithTimer(timer.New()), WithLogger(zap.NewNop()), WithNewBlockFromContext(NewBlockFromContext), @@ -809,7 +809,7 @@ func (s *testState) getOptions() []Option { verify := s.verify if verify == nil { - verify = func(b block.Block) bool { return true } + verify = func(block.Block) bool { return true } } opts = append(opts, WithVerifyBlock(verify))