Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
lumos42 committed Apr 8, 2024
1 parent d230eae commit 31dd055
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func (s *Ethereum) SetEtherbase(etherbase common.Address) {
s.miner.SetEtherbase(etherbase)
}

func (s *Ethereum) SetOrderbookChecker(orderBookChecker miner.OrderBookChecker) {
func (s *Ethereum) SetOrderbookChecker(orderBookChecker miner.OrderbookChecker) {
s.miner.SetOrderbookChecker(orderBookChecker)

}
Expand Down
2 changes: 1 addition & 1 deletion miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (miner *Miner) SetEtherbase(addr common.Address) {
miner.worker.setEtherbase(addr)
}

func (miner *Miner) SetOrderbookChecker(orderBookChecker OrderBookChecker) {
func (miner *Miner) SetOrderbookChecker(orderBookChecker OrderbookChecker) {
miner.worker.setOrderbookChecker(orderBookChecker)
}

Expand Down
4 changes: 2 additions & 2 deletions miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ type worker struct {
coinbase common.Address
clock *mockable.Clock // Allows us mock the clock for testing

orderbookChecker OrderBookChecker
orderbookChecker OrderbookChecker
}

func newWorker(config *Config, chainConfig *params.ChainConfig, engine consensus.Engine, eth Backend, mux *event.TypeMux, clock *mockable.Clock) *worker {
Expand All @@ -125,7 +125,7 @@ func (w *worker) setEtherbase(addr common.Address) {
w.coinbase = addr
}

func (w *worker) setOrderbookChecker(orderBookChecker OrderBookChecker) {
func (w *worker) setOrderbookChecker(orderBookChecker OrderbookChecker) {
w.orderbookChecker = orderBookChecker
}

Expand Down

0 comments on commit 31dd055

Please sign in to comment.