@ -123,7 +123,7 @@ public class BlockTransactionSelectorTest {
pendingTransactions . addRemoteTransaction ( transaction ) ;
pendingTransactions . addRemoteTransaction ( transaction ) ;
when ( transactionProcessor . processTransaction (
when ( transactionProcessor . processTransaction (
any ( ) , any ( ) , any ( ) , eq ( transaction ) , any ( ) , any ( ) , anyBoolean ( ) , anyBoolean ( ) ) )
any ( ) , any ( ) , any ( ) , eq ( transaction ) , any ( ) , any ( ) , anyBoolean ( ) , any ( ) ) )
. thenReturn ( MainnetTransactionProcessor . Result . failed ( 5 , ValidationResult . valid ( ) ) ) ;
. thenReturn ( MainnetTransactionProcessor . Result . failed ( 5 , ValidationResult . valid ( ) ) ) ;
// The block should fit 3 transactions only
// The block should fit 3 transactions only
@ -162,7 +162,7 @@ public class BlockTransactionSelectorTest {
}
}
when ( transactionProcessor . processTransaction (
when ( transactionProcessor . processTransaction (
any ( ) , any ( ) , any ( ) , any ( ) , any ( ) , any ( ) , anyBoolean ( ) , anyBoolean ( ) ) )
any ( ) , any ( ) , any ( ) , any ( ) , any ( ) , any ( ) , anyBoolean ( ) , any ( ) ) )
. thenReturn (
. thenReturn (
MainnetTransactionProcessor . Result . successful (
MainnetTransactionProcessor . Result . successful (
new LogSeries ( Lists . newArrayList ( ) ) ,
new LogSeries ( Lists . newArrayList ( ) ) ,
@ -177,7 +177,7 @@ public class BlockTransactionSelectorTest {
any ( ) ,
any ( ) ,
any ( ) ,
any ( ) ,
anyBoolean ( ) ,
anyBoolean ( ) ,
anyBoolean ( ) ) )
any ( ) ) )
. thenReturn (
. thenReturn (
MainnetTransactionProcessor . Result . invalid ( ValidationResult . invalid ( NONCE_TOO_LOW ) ) ) ;
MainnetTransactionProcessor . Result . invalid ( ValidationResult . invalid ( NONCE_TOO_LOW ) ) ) ;
@ -218,7 +218,7 @@ public class BlockTransactionSelectorTest {
}
}
when ( transactionProcessor . processTransaction (
when ( transactionProcessor . processTransaction (
any ( ) , any ( ) , any ( ) , any ( ) , any ( ) , any ( ) , anyBoolean ( ) , anyBoolean ( ) ) )
any ( ) , any ( ) , any ( ) , any ( ) , any ( ) , any ( ) , anyBoolean ( ) , any ( ) ) )
. thenReturn (
. thenReturn (
MainnetTransactionProcessor . Result . successful (
MainnetTransactionProcessor . Result . successful (
new LogSeries ( Lists . newArrayList ( ) ) ,
new LogSeries ( Lists . newArrayList ( ) ) ,
@ -289,7 +289,7 @@ public class BlockTransactionSelectorTest {
final ProcessableBlockHeader blockHeader = createBlockWithGasLimit ( 300 ) ;
final ProcessableBlockHeader blockHeader = createBlockWithGasLimit ( 300 ) ;
when ( transactionProcessor . processTransaction (
when ( transactionProcessor . processTransaction (
any ( ) , any ( ) , any ( ) , any ( ) , any ( ) , any ( ) , anyBoolean ( ) , anyBoolean ( ) ) )
any ( ) , any ( ) , any ( ) , any ( ) , any ( ) , any ( ) , anyBoolean ( ) , any ( ) ) )
. thenReturn (
. thenReturn (
MainnetTransactionProcessor . Result . successful (
MainnetTransactionProcessor . Result . successful (
new LogSeries ( Lists . newArrayList ( ) ) ,
new LogSeries ( Lists . newArrayList ( ) ) ,
@ -346,7 +346,7 @@ public class BlockTransactionSelectorTest {
// TransactionProcessor mock assumes all gas in the transaction was used (i.e. gasLimit).
// TransactionProcessor mock assumes all gas in the transaction was used (i.e. gasLimit).
when ( transactionProcessor . processTransaction (
when ( transactionProcessor . processTransaction (
any ( ) , any ( ) , any ( ) , any ( ) , any ( ) , any ( ) , anyBoolean ( ) , anyBoolean ( ) ) )
any ( ) , any ( ) , any ( ) , any ( ) , any ( ) , any ( ) , anyBoolean ( ) , any ( ) ) )
. thenReturn (
. thenReturn (
MainnetTransactionProcessor . Result . successful (
MainnetTransactionProcessor . Result . successful (
new LogSeries ( Lists . newArrayList ( ) ) ,
new LogSeries ( Lists . newArrayList ( ) ) ,
@ -442,7 +442,7 @@ public class BlockTransactionSelectorTest {
any ( ) ,
any ( ) ,
any ( ) ,
any ( ) ,
anyBoolean ( ) ,
anyBoolean ( ) ,
anyBoolean ( ) ) )
any ( ) ) )
. thenReturn (
. thenReturn (
Result . successful (
Result . successful (
LogSeries . empty ( ) , 10000 , BytesValue . EMPTY , ValidationResult . valid ( ) ) ) ;
LogSeries . empty ( ) , 10000 , BytesValue . EMPTY , ValidationResult . valid ( ) ) ) ;
@ -454,7 +454,7 @@ public class BlockTransactionSelectorTest {
any ( ) ,
any ( ) ,
any ( ) ,
any ( ) ,
anyBoolean ( ) ,
anyBoolean ( ) ,
anyBoolean ( ) ) )
any ( ) ) )
. thenReturn (
. thenReturn (
Result . invalid (
Result . invalid (
ValidationResult . invalid ( TransactionInvalidReason . EXCEEDS_BLOCK_GAS_LIMIT ) ) ) ;
ValidationResult . invalid ( TransactionInvalidReason . EXCEEDS_BLOCK_GAS_LIMIT ) ) ) ;
@ -483,7 +483,7 @@ public class BlockTransactionSelectorTest {
any ( ) ,
any ( ) ,
any ( ) ,
any ( ) ,
anyBoolean ( ) ,
anyBoolean ( ) ,
anyBoolean ( ) ) )
any ( ) ) )
. thenReturn (
. thenReturn (
Result . invalid ( ValidationResult . invalid ( TransactionInvalidReason . INCORRECT_NONCE ) ) ) ;
Result . invalid ( ValidationResult . invalid ( TransactionInvalidReason . INCORRECT_NONCE ) ) ) ;