1

Is it possible that EVM will execute one function over multiple blocks? I am interested in the case when the contract validates the block.timestamp at the beginning of the function and then use block.timestamp at the end. Can 2nd timestamp differ from the 1st?

1
  • I think it's not. Because every function call will triggered a block and once a blocks reach its memory or allocation the data will continue but assign in other blocks or next blocks Sep 7, 2022 at 8:01

2 Answers 2

0

No, execution must happen within one block - though of course if that is not "enough" the execution will instead run out of gas and revert.

0

Nope It can't. A block is a compilation of transactions that is sent to the Ethereum network and when the block of particular number is validated by validator, only then a transaction passes through. So, since transactions make up block, a transaction can never take gas greater than block gas limit. So, a transaction can never be on multiple blocks as a block is made up of transactions and not vice versa.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.