Skip to content

Conversation

@chfast
Copy link
Member

@chfast chfast commented Jul 22, 2024

Do not execute system contracts on the blockchain test genesis block. It is unspecified how they should behave and the genesis block is expected to be a static block without transactions.

Instead just validate there are no transactions/receipt/withdrowals referenced by the genesis block header.

@chfast chfast requested a review from rodiazet July 22, 2024 14:37
@codecov
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.29%. Comparing base (ff3559a) to head (d0e72ed).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #954      +/-   ##
==========================================
- Coverage   94.30%   94.29%   -0.01%     
==========================================
  Files         143      143              
  Lines       16147    16138       -9     
==========================================
- Hits        15227    15218       -9     
  Misses        920      920              
Flag Coverage Δ
eof_execution_spec_tests 16.93% <100.00%> (-0.05%) ⬇️
ethereum_tests 26.90% <100.00%> (-0.05%) ⬇️
ethereum_tests_silkpre 18.68% <0.00%> (+0.01%) ⬆️
execution_spec_tests 17.91% <100.00%> (-0.05%) ⬇️
unittests 89.73% <0.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
test/blockchaintest/blockchaintest_runner.cpp 77.41% <100.00%> (-2.00%) ⬇️

@chfast chfast force-pushed the tests/blockchaintest_genesis branch from 0975b5d to 07795ca Compare July 22, 2024 15:03
@chfast chfast added the tests Testing infrastructure label Jul 22, 2024
@chfast chfast force-pushed the tests/blockchaintest_genesis branch from 07795ca to 9e662a4 Compare July 22, 2024 16:13
@chfast chfast requested a review from gumb0 July 22, 2024 16:14
@chfast chfast force-pushed the tests/blockchaintest_genesis branch from 9e662a4 to 94cd359 Compare July 23, 2024 10:05
Do not execute system contracts on the blockchain test genesis block.
It is unspecified how they should behave and the genesis block
is expected to be a static block without transactions.

Instead just validate there are no transactions/receipt/withdrowals
referenced by the genesis block header.
@chfast chfast force-pushed the tests/blockchaintest_genesis branch from 94cd359 to d0e72ed Compare July 23, 2024 14:22
@chfast chfast merged commit 26d5609 into master Jul 23, 2024
@chfast chfast deleted the tests/blockchaintest_genesis branch July 23, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Testing infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants