Skip to content

Commit 85477be

Browse files
author
Leonor Boga
committed
ETCM-1018 Remove unused references to blockchain
1 parent d158b95 commit 85477be

File tree

10 files changed

+0
-17
lines changed

10 files changed

+0
-17
lines changed

src/main/scala/io/iohk/ethereum/blockchain/sync/fast/FastSync.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ class FastSync(
178178
SyncStateSchedulerActor
179179
.props(
180180
SyncStateScheduler(
181-
blockchain,
182181
blockchainReader,
183182
evmCodeStorage,
184183
stateStorage,

src/main/scala/io/iohk/ethereum/blockchain/sync/fast/SyncStateScheduler.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import io.iohk.ethereum.db.storage.EvmCodeStorage
2323
import io.iohk.ethereum.db.storage.NodeStorage
2424
import io.iohk.ethereum.db.storage.StateStorage
2525
import io.iohk.ethereum.domain.Account
26-
import io.iohk.ethereum.domain.Blockchain
2726
import io.iohk.ethereum.domain.BlockchainReader
2827
import io.iohk.ethereum.mpt.BranchNode
2928
import io.iohk.ethereum.mpt.ExtensionNode
@@ -292,7 +291,6 @@ object SyncStateScheduler {
292291
BloomFilter.create[ByteString](ByteStringFunnel, expectedFilterSize)
293292

294293
def apply(
295-
blockchain: Blockchain,
296294
blockchainReader: BlockchainReader,
297295
evmCodeStorage: EvmCodeStorage,
298296
stateStorage: StateStorage,

src/main/scala/io/iohk/ethereum/blockchain/sync/regular/ImportMessages.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import akka.event.Logging._
44
import akka.util.ByteString
55

66
import io.iohk.ethereum.domain.Block
7-
import io.iohk.ethereum.ledger._
87
import io.iohk.ethereum.mpt.MerklePatriciaTrie.MissingNodeException
98
import io.iohk.ethereum.network.PeerId
109
import io.iohk.ethereum.utils.ByteStringUtils._

src/main/scala/io/iohk/ethereum/consensus/pow/miners/MockedMiner.scala

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import io.iohk.ethereum.consensus.pow.miners.MockedMiner.MockedMinerResponses.Mi
2525
import io.iohk.ethereum.consensus.pow.miners.MockedMiner.MockedMinerResponses.MiningError
2626
import io.iohk.ethereum.consensus.pow.miners.MockedMiner.MockedMinerResponses.MiningOrdered
2727
import io.iohk.ethereum.domain.Block
28-
import io.iohk.ethereum.domain.Blockchain
2928
import io.iohk.ethereum.domain.BlockchainReader
3029
import io.iohk.ethereum.ledger.InMemoryWorldStateProxy
3130
import io.iohk.ethereum.nodebuilder.BlockchainConfigBuilder
@@ -34,7 +33,6 @@ import io.iohk.ethereum.utils.ByteStringUtils
3433
import io.iohk.ethereum.utils.ByteStringUtils.ByteStringOps
3534

3635
class MockedMiner(
37-
blockchain: Blockchain,
3836
blockchainReader: BlockchainReader,
3937
blockCreator: PoWBlockCreator,
4038
syncEventListener: ActorRef,
@@ -122,15 +120,13 @@ object MockedMiner {
122120
case object MineBlock
123121

124122
private[pow] def props(
125-
blockchain: Blockchain,
126123
blockchainReader: BlockchainReader,
127124
blockCreator: PoWBlockCreator,
128125
syncEventListener: ActorRef,
129126
configBuilder: BlockchainConfigBuilder
130127
): Props =
131128
Props(
132129
new MockedMiner(
133-
blockchain,
134130
blockchainReader,
135131
blockCreator,
136132
syncEventListener,
@@ -148,7 +144,6 @@ object MockedMiner {
148144
ommersPool = node.ommersPool
149145
)
150146
val minerProps = props(
151-
blockchain = node.blockchain,
152147
blockchainReader = node.blockchainReader,
153148
blockCreator = blockCreator,
154149
syncEventListener = node.syncController,

src/main/scala/io/iohk/ethereum/jsonrpc/FilterManager.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import io.iohk.ethereum.utils.FilterConfig
2525
import io.iohk.ethereum.utils.TxPoolConfig
2626

2727
class FilterManager(
28-
blockchain: Blockchain,
2928
blockchainReader: BlockchainReader,
3029
blockGenerator: BlockGenerator,
3130
keyStore: KeyStore,
@@ -278,7 +277,6 @@ class FilterManager(
278277

279278
object FilterManager {
280279
def props(
281-
blockchain: Blockchain,
282280
blockchainReader: BlockchainReader,
283281
blockGenerator: BlockGenerator,
284282
keyStore: KeyStore,
@@ -288,7 +286,6 @@ object FilterManager {
288286
): Props =
289287
Props(
290288
new FilterManager(
291-
blockchain,
292289
blockchainReader,
293290
blockGenerator,
294291
keyStore,

src/main/scala/io/iohk/ethereum/nodebuilder/TestNode.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class TestNode extends BaseNode {
2121
blockchainReader,
2222
blockchainWriter,
2323
storagesInstance.storages.evmCodeStorage,
24-
syncConfig,
2524
scheduler,
2625
miningConfig,
2726
vm,

src/test/scala/io/iohk/ethereum/blockchain/sync/StateSyncSpec.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ class StateSyncSpec
254254
system.actorOf(
255255
SyncStateSchedulerActor.props(
256256
SyncStateScheduler(
257-
blockchain,
258257
blockchainReader,
259258
getNewStorages.storages.evmCodeStorage,
260259
getNewStorages.storages.stateStorage,

src/test/scala/io/iohk/ethereum/blockchain/sync/SyncStateSchedulerSpec.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ class SyncStateSchedulerSpec
316316
val freshBlockchainWriter = BlockchainWriter(freshStorage.storages, freshBlockchainMetadata)
317317
(
318318
SyncStateScheduler(
319-
freshBlockchain,
320319
freshBlockchainReader,
321320
freshStorage.storages.evmCodeStorage,
322321
freshStorage.storages.stateStorage,

src/test/scala/io/iohk/ethereum/consensus/pow/miners/MockedMinerSpec.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ class MockedMinerSpec
222222

223223
val miner: TestActorRef[Nothing] = TestActorRef(
224224
MockedMiner.props(
225-
blockchain,
226225
blockchainReader,
227226
blockCreator,
228227
sync.ref,

src/test/scala/io/iohk/ethereum/jsonrpc/FilterManagerSpec.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,6 @@ class FilterManagerSpec
523523
val filterManager: TestActorRef[FilterManager] = TestActorRef[FilterManager](
524524
Props(
525525
new FilterManager(
526-
blockchain,
527526
blockchainReader,
528527
blockGenerator,
529528
keyStore,

0 commit comments

Comments
 (0)