From 31dd055a7bbeaaf1f7b3ce1cfd6a0b06c756d10b Mon Sep 17 00:00:00 2001 From: Shubham Goyal Date: Mon, 8 Apr 2024 10:00:31 +0530 Subject: [PATCH] Fix compile error --- eth/backend.go | 2 +- miner/miner.go | 2 +- miner/worker.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/eth/backend.go b/eth/backend.go index 53ca304ed1..71bfae0ab4 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -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) } diff --git a/miner/miner.go b/miner/miner.go index 4636c137d9..f22b81b475 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -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) } diff --git a/miner/worker.go b/miner/worker.go index a1d593a11a..ef008af38b 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -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 { @@ -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 }