Skip to content

Commit a078c95

Browse files
spalladinocodygunton
authored andcommitted
feat: Block cheat codes in anvil (#8277)
Adds a second api to the mainnet-fork, located at `public-PUBLIC_API_KEY`, in which all cheat codes are blocked. We define a cheat code as a method in the evm, hardhat, or anvil namespaces. We use njs for parsing the JSON RPC request body and testing the method namespace. The PUBLIC_API_KEY is only set for provernet, for other networks, we load the same API_KEY secret as always. This PR also enables logging for anvil, including a logrotate config to ensure we don't fill up the disk just with logs.
1 parent 88a1413 commit a078c95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/devnet-deploys.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ jobs:
156156
echo "branch_name=provernet" >> $GITHUB_OUTPUT
157157
echo "network_api_key=PROVERNET_API_KEY" >> $GITHUB_OUTPUT
158158
echo "network_public_api_key=PROVERNET_PUBLIC_API_KEY" >> $GITHUB_OUTPUT
159-
echo "agents_per_prover=8" >> $GITHUB_OUTPUT
160-
echo "bot_interval=10" >> $GITHUB_OUTPUT
159+
echo "agents_per_prover=4" >> $GITHUB_OUTPUT
160+
echo "bot_interval=300" >> $GITHUB_OUTPUT
161161
echo "node_tcp_range_start=40200" >> $GITHUB_OUTPUT
162162
echo "node_udp_range_start=45200" >> $GITHUB_OUTPUT
163163
echo "prover_node_tcp_range_start=41200" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)