1
- package io .iohk .ethereum .ledger
1
+ package io .iohk .ethereum .consensus
2
2
3
3
import akka .util .ByteString
4
-
5
- import scala .concurrent .duration ._
6
- import scala .language .postfixOps
7
- import org .scalatest .concurrent .ScalaFutures
8
- import org .scalatest .flatspec .AnyFlatSpec
9
- import org .scalatest .matchers .should .Matchers
10
4
import io .iohk .ethereum .Mocks
11
5
import io .iohk .ethereum .Mocks .MockValidatorsAlwaysSucceed
12
6
import io .iohk .ethereum .blockchain .sync .regular .{
@@ -18,17 +12,30 @@ import io.iohk.ethereum.blockchain.sync.regular.{
18
12
UnknownParent
19
13
}
20
14
import io .iohk .ethereum .consensus .mining ._
21
- import io .iohk .ethereum .consensus .validators .BlockHeaderError .HeaderDifficultyError
22
- import io .iohk .ethereum .consensus .validators .BlockHeaderError .HeaderParentNotFoundError
15
+ import io .iohk .ethereum .consensus .validators .BlockHeaderError .{HeaderDifficultyError , HeaderParentNotFoundError }
23
16
import io .iohk .ethereum .consensus .validators ._
24
17
import io .iohk .ethereum .db .storage .MptStorage
25
18
import io .iohk .ethereum .domain ._
26
19
import io .iohk .ethereum .ledger .BlockQueue .Leaf
27
- import io .iohk .ethereum .mpt .LeafNode
28
- import io .iohk .ethereum .mpt .MerklePatriciaTrie
20
+ import io .iohk .ethereum .ledger .{
21
+ BlockData ,
22
+ BlockExecution ,
23
+ CheckpointHelpers ,
24
+ EphemBlockchain ,
25
+ MockBlockchain ,
26
+ OmmersTestSetup ,
27
+ TestSetupWithVmAndValidators
28
+ }
29
+ import io .iohk .ethereum .mpt .{LeafNode , MerklePatriciaTrie }
29
30
import io .iohk .ethereum .utils .BlockchainConfig
31
+ import org .scalatest .concurrent .ScalaFutures
32
+ import org .scalatest .flatspec .AnyFlatSpec
33
+ import org .scalatest .matchers .should .Matchers
34
+
35
+ import scala .concurrent .duration ._
36
+ import scala .language .postfixOps
30
37
31
- class BlockImportSpec extends AnyFlatSpec with Matchers with ScalaFutures {
38
+ class ConsensusSpec extends AnyFlatSpec with Matchers with ScalaFutures {
32
39
33
40
implicit override val patienceConfig : PatienceConfig =
34
41
PatienceConfig (timeout = scaled(2 seconds), interval = scaled(1 second))
0 commit comments