@@ -40,8 +40,7 @@ class BlockGeneratorSpec extends FlatSpec with Matchers with PropertyChecks with
4040 }
4141
4242 it should " generate correct block with transactions" in new TestSetup {
43- val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(
44- bestBlock, Seq (signedTransaction), Address (testAddress), blockGenerator.emptyX)
43+ val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(bestBlock, Seq (signedTransaction), Address (testAddress), blockGenerator.emptyX)
4544 result shouldBe a[Right [_, Block ]]
4645
4746 // mined with mantis + ethminer
@@ -58,8 +57,7 @@ class BlockGeneratorSpec extends FlatSpec with Matchers with PropertyChecks with
5857
5958
6059 it should " be possible to simulate transaction, on world returned with pending block " in new TestSetup {
61- val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(
62- bestBlock, Seq (signedTransaction), Address (testAddress), blockGenerator.emptyX)
60+ val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(bestBlock, Seq (signedTransaction), Address (testAddress), blockGenerator.emptyX)
6361 result shouldBe a[Right [_, Block ]]
6462
6563 // mined with mantis + ethminer
@@ -74,8 +72,7 @@ class BlockGeneratorSpec extends FlatSpec with Matchers with PropertyChecks with
7472 val res = ledger.importBlock(fullBlock.right.get)
7573
7674 // Create new pending block, with updated stateRootHash
77- val result1 : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(
78- blockchain.getBestBlock(), Seq (signedTransaction), Address (testAddress), blockGenerator.emptyX)
75+ val result1 : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(blockchain.getBestBlock(), Seq (signedTransaction), Address (testAddress), blockGenerator.emptyX)
7976 result1 shouldBe a[Right [_, Block ]]
8077
8178 val pendBlockAndState = blockGenerator.getPendingBlockAndState.get
@@ -93,8 +90,7 @@ class BlockGeneratorSpec extends FlatSpec with Matchers with PropertyChecks with
9390 }
9491
9592 it should " filter out failing transactions" in new TestSetup {
96- val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(
97- bestBlock, Seq (signedTransaction, duplicatedSignedTransaction), Address (testAddress), blockGenerator.emptyX)
93+ val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(bestBlock, Seq (signedTransaction, duplicatedSignedTransaction), Address (testAddress), blockGenerator.emptyX)
9894 result shouldBe a[Right [_, Block ]]
9995
10096 // mined with mantis + ethminer
@@ -117,8 +113,7 @@ class BlockGeneratorSpec extends FlatSpec with Matchers with PropertyChecks with
117113 nonce = signedTransaction.tx.nonce + 1 ),
118114 keyPair, Some (0x3d .toByte))
119115
120- val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(
121- bestBlock, Seq (txWitGasTooBigGasLimit, signedTransaction, duplicatedSignedTransaction), Address (testAddress), blockGenerator.emptyX)
116+ val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(bestBlock, Seq (txWitGasTooBigGasLimit, signedTransaction, duplicatedSignedTransaction), Address (testAddress), blockGenerator.emptyX)
122117 result shouldBe a[Right [_, Block ]]
123118
124119 // mined with mantis + ethminer
@@ -160,8 +155,7 @@ class BlockGeneratorSpec extends FlatSpec with Matchers with PropertyChecks with
160155 val generalTx = SignedTransaction .sign(transaction, keyPair, None )
161156 val specificTx = SignedTransaction .sign(transaction.copy(nonce = transaction.nonce + 1 ), keyPair, Some (0x3d .toByte))
162157
163- val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(
164- bestBlock, Seq (generalTx, specificTx), Address (testAddress), blockGenerator.emptyX)
158+ val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(bestBlock, Seq (generalTx, specificTx), Address (testAddress), blockGenerator.emptyX)
165159 result shouldBe a[Right [_, Block ]]
166160
167161 // mined with mantis + ethminer
@@ -180,8 +174,7 @@ class BlockGeneratorSpec extends FlatSpec with Matchers with PropertyChecks with
180174 it should " generate block after eip155 and allow both chain specific and general transactions" in new TestSetup {
181175 val generalTx : SignedTransaction = SignedTransaction .sign(transaction.copy(nonce = transaction.nonce + 1 ), keyPair, None )
182176
183- val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(
184- bestBlock, Seq (generalTx, signedTransaction), Address (testAddress), blockGenerator.emptyX)
177+ val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(bestBlock, Seq (generalTx, signedTransaction), Address (testAddress), blockGenerator.emptyX)
185178 result shouldBe a[Right [_, Block ]]
186179
187180 // mined with mantis + ethminer
@@ -200,8 +193,7 @@ class BlockGeneratorSpec extends FlatSpec with Matchers with PropertyChecks with
200193 it should " include consecutive transactions from single sender" in new TestSetup {
201194 val nextTransaction : SignedTransaction = SignedTransaction .sign(transaction.copy(nonce = signedTransaction.tx.nonce + 1 ), keyPair, Some (0x3d .toByte))
202195
203- val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(
204- bestBlock, Seq (nextTransaction, signedTransaction), Address (testAddress), blockGenerator.emptyX)
196+ val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(bestBlock, Seq (nextTransaction, signedTransaction), Address (testAddress), blockGenerator.emptyX)
205197 result shouldBe a[Right [_, Block ]]
206198
207199 // mined with mantis + ethminer
@@ -232,9 +224,7 @@ class BlockGeneratorSpec extends FlatSpec with Matchers with PropertyChecks with
232224 val signedFailingTransaction : SignedTransaction = SignedTransaction .sign(failingTransaction,
233225 keyPairFromPrvKey(privateKeyWithNoEthere), Some (0x3d .toByte))
234226
235- val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(
236- bestBlock, Seq (nextTransaction, signedFailingTransaction, signedTransaction),
237- Address (testAddress), blockGenerator.emptyX)
227+ val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(bestBlock, Seq (nextTransaction, signedFailingTransaction, signedTransaction), Address (testAddress), blockGenerator.emptyX)
238228 result shouldBe a[Right [_, Block ]]
239229
240230 // mined with mantis + ethminer
@@ -256,8 +246,7 @@ class BlockGeneratorSpec extends FlatSpec with Matchers with PropertyChecks with
256246 keyPair,
257247 Some (0x3d .toByte))
258248
259- val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(
260- bestBlock, Seq (txWitSameNonceButLowerGasPrice, signedTransaction), Address (testAddress), blockGenerator.emptyX)
249+ val result : Either [BlockPreparationError , PendingBlock ] = blockGenerator.generateBlock(bestBlock, Seq (txWitSameNonceButLowerGasPrice, signedTransaction), Address (testAddress), blockGenerator.emptyX)
261250 result shouldBe a[Right [_, Block ]]
262251
263252 // mined with mantis + ethminer
0 commit comments