Skip to content

Conversation

@jochem-brouwer
Copy link
Contributor

Progress dump to run stateful tests locally.

Command ran inside gas-benchmarks:

python3 eest_stateful_generator.py --fork Osaka --rpc-seed-key PKEY --rpc-address ADDRESS_ASSOCIATED_WITH_PKEY --test-path tests/benchmark/stateful

The execution-data folder inside gas-benchmarks should look like (this is and MUST be a Nethermind snapshot, because we need to use the "hacked" Neth version to fill tests)

execution-data tree -L 2
.
├── mainnet
│   ├── badBlocks
│   ├── blobTransactions
│   ├── blockInfos
│   ├── blockNumbers
│   ├── blocks
│   ├── bloom
│   ├── code
│   ├── discoveryNodes
│   ├── headers
│   ├── metadata
│   ├── peers
│   ├── receipts
│   └── state
├── _snapshot_eth_getBlockByNumber.json
├── _snapshot_metadata.json
└── _snapshot_web3_clientVersion.json

15 directories, 4 files

I had to add this InitDbPath otherwise Nethermind does not "grab" the snapshot correctly.

Do not merge 😄 👍

f"--rpc-endpoint={tests_rpc}",
f"--gas-benchmark-values={args.gas_benchmark_values}",
"--eoa-fund-amount-default", "3100000000000000000",
#"--eoa-fund-amount-default", "3100000000000000000",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This flag seems to be removed from EELS (or it is not available in execute remote). Might also be renamed.

#"--eoa-fund-amount-default", "3100000000000000000",
"--tx-wait-timeout", "300",
"--eoa-start", "103835740027347086785932208981225044632444623980288738833340492242305523519088",
#"--eoa-start", str(int(args.rpc_seed_key, 16)),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OG has hardcoded eoa start, so need to figure out why this is, and if we even have to provide this flag (should it be the same as the rpc pkey? What is the difference)?

args.test_path,
"--",
"-m", "benchmark", "-n", "1",
"-m", "stateful", "-n", "1",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stateful makes bloatnet tests run.

benchmark makes the compute tests run. (Not sure if stateful also runs compute, did not yet check)

@jochem-brouwer
Copy link
Contributor Author

EELS commit was here: 3ac8ce8865e2239a0d5d576091770573accc04c8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant