From adaa12ba90484772e0c01d00b04b9a12471333d4 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 26 Feb 2025 18:47:35 +0100 Subject: [PATCH] cmd/workload: update README --- cmd/workload/README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cmd/workload/README.md b/cmd/workload/README.md index c66396e437..c85e58a041 100644 --- a/cmd/workload/README.md +++ b/cmd/workload/README.md @@ -1,7 +1,7 @@ ## Workload Testing Tool This tool performs RPC calls against a live node. It has tests for the Sepolia testnet and -Mainnet. +Mainnet. Note the tests require a fully synced node. To run the tests against a Sepolia node, use: @@ -19,8 +19,11 @@ and `eth_getBlockByNumber`, use this command: ### Regenerating tests -There are also commands for generating tests. To create filter tests, run: +There is a facility for updating the tests from the chain. This can also be used to +generate the tests for a new network. As an example, to recreate tests for mainnet, run +the following commands (in this directory) against a synced mainnet node: ```shell -> ./workload filtergen http://host:8545 +> go run . filtergen --queries queries/filter_queries_mainnet.json http://host:8545 +> go run . historygen --history-tests queries/history_mainnet.json http://host:8545 ```