@@ -2403,7 +2403,7 @@ func TestTxAllowListDisablePrecompile(t *testing.T) {
24032403 require .Equal (t , signedTx0 .Hash (), txs [0 ].Hash ())
24042404
24052405 // verify the issued block is after the network upgrade
2406- require .GreaterOrEqual (t , int64 (block .Timestamp ()), disableAllowListTimestamp .Unix ())
2406+ require .GreaterOrEqual (t , int64 (block .Time ()), disableAllowListTimestamp .Unix ())
24072407
24082408 <- newTxPoolHeadChan // wait for new head in tx pool
24092409
@@ -2783,7 +2783,7 @@ func TestRewardManagerPrecompileSetRewardAddress(t *testing.T) {
27832783 // to determine the coinbase for this block before full deactivation in the
27842784 // next block.
27852785 require .Equal (t , testAddr , ethBlock .Coinbase ())
2786- require .GreaterOrEqual (t , int64 (ethBlock .Timestamp ()), disableTime .Unix ())
2786+ require .GreaterOrEqual (t , int64 (ethBlock .Time ()), disableTime .Unix ())
27872787
27882788 vm .clock .Set (vm .clock .Time ().Add (3 * time .Hour )) // let time pass to decrease gas price
27892789 // issue another block to verify that the reward manager is disabled
@@ -2803,7 +2803,7 @@ func TestRewardManagerPrecompileSetRewardAddress(t *testing.T) {
28032803 // reward manager was disabled at previous block
28042804 // so this block should revert back to enabling fee recipients
28052805 require .Equal (t , etherBase , ethBlock .Coinbase ())
2806- require .GreaterOrEqual (t , int64 (ethBlock .Timestamp ()), disableTime .Unix ())
2806+ require .GreaterOrEqual (t , int64 (ethBlock .Time ()), disableTime .Unix ())
28072807
28082808 // Verify that Blackhole has received fees
28092809 blkState , err = vm .blockChain .StateAt (ethBlock .Root ())
@@ -2917,7 +2917,7 @@ func TestRewardManagerPrecompileAllowFeeRecipients(t *testing.T) {
29172917 require .Equal (t , newHead .Head .Hash (), common .Hash (blk .ID ()))
29182918 ethBlock = blk .(* chain.BlockWrapper ).Block .(* Block ).ethBlock
29192919 require .Equal (t , etherBase , ethBlock .Coinbase ()) // reward address was activated at previous block
2920- require .GreaterOrEqual (t , int64 (ethBlock .Timestamp ()), disableTime .Unix ())
2920+ require .GreaterOrEqual (t , int64 (ethBlock .Time ()), disableTime .Unix ())
29212921
29222922 vm .clock .Set (vm .clock .Time ().Add (3 * time .Hour )) // let time pass so that gas price is reduced
29232923 tx2 = types .NewTransaction (uint64 (2 ), testEthAddrs [0 ], big .NewInt (2 ), 21000 , big .NewInt (testMinGasPrice ), nil )
@@ -2934,7 +2934,7 @@ func TestRewardManagerPrecompileAllowFeeRecipients(t *testing.T) {
29342934 require .Equal (t , newHead .Head .Hash (), common .Hash (blk .ID ()))
29352935 ethBlock = blk .(* chain.BlockWrapper ).Block .(* Block ).ethBlock
29362936 require .Equal (t , constants .BlackholeAddr , ethBlock .Coinbase ()) // reward address was activated at previous block
2937- require .Greater (t , int64 (ethBlock .Timestamp ()), disableTime .Unix ())
2937+ require .Greater (t , int64 (ethBlock .Time ()), disableTime .Unix ())
29382938
29392939 // Verify that Blackhole has received fees
29402940 blkState , err = vm .blockChain .StateAt (ethBlock .Root ())
0 commit comments