@ -112,7 +112,7 @@ func TestEth2AssembleBlock(t *testing.T) {
if err != nil {
t . Fatalf ( "error signing transaction, err=%v" , err )
}
ethservice . TxPool ( ) . Add ( [ ] * types . Transaction { tx } , true , fals e)
ethservice . TxPool ( ) . Add ( [ ] * types . Transaction { tx } , true , tru e)
blockParams := engine . PayloadAttributes {
Timestamp : blocks [ 9 ] . Time ( ) + 5 ,
}
@ -189,7 +189,7 @@ func TestEth2PrepareAndGetPayload(t *testing.T) {
// Put the 10th block's tx in the pool and produce a new block
txs := blocks [ 9 ] . Transactions ( )
ethservice . TxPool ( ) . Add ( txs , true , fals e)
ethservice . TxPool ( ) . Add ( txs , true , tru e)
blockParams := engine . PayloadAttributes {
Timestamp : blocks [ 8 ] . Time ( ) + 5 ,
}
@ -310,13 +310,13 @@ func TestEth2NewBlock(t *testing.T) {
statedb , _ := ethservice . BlockChain ( ) . StateAt ( parent . Root ( ) )
nonce := statedb . GetNonce ( testAddr )
tx , _ := types . SignTx ( types . NewContractCreation ( nonce , new ( big . Int ) , 1000000 , big . NewInt ( 2 * params . InitialBaseFee ) , logCode ) , types . LatestSigner ( ethservice . BlockChain ( ) . Config ( ) ) , testKey )
ethservice . TxPool ( ) . Add ( [ ] * types . Transaction { tx } , true , fals e)
ethservice . TxPool ( ) . Add ( [ ] * types . Transaction { tx } , true , tru e)
execData , err := assembleWithTransactions ( api , parent . Hash ( ) , & engine . PayloadAttributes {
Timestamp : parent . Time ( ) + 5 ,
} , 1 )
if err != nil {
t . Fatalf ( "Failed to create the executable data %v" , err )
t . Fatalf ( "Failed to create the executable data, block %d: %v" , i , err )
}
block , err := engine . ExecutableDataToBlock ( * execData , nil , nil )
if err != nil {