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..2fdfcb36 100644 --- a/dbft_test.go +++ b/dbft_test.go @@ -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))