Skip to content

Commit

Permalink
feat: Block cheat codes in anvil (#8277)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
spalladino authored and codygunton committed Aug 30, 2024
1 parent 88a1413 commit a078c95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/devnet-deploys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ jobs:
echo "branch_name=provernet" >> $GITHUB_OUTPUT
echo "network_api_key=PROVERNET_API_KEY" >> $GITHUB_OUTPUT
echo "network_public_api_key=PROVERNET_PUBLIC_API_KEY" >> $GITHUB_OUTPUT
echo "agents_per_prover=8" >> $GITHUB_OUTPUT
echo "bot_interval=10" >> $GITHUB_OUTPUT
echo "agents_per_prover=4" >> $GITHUB_OUTPUT
echo "bot_interval=300" >> $GITHUB_OUTPUT
echo "node_tcp_range_start=40200" >> $GITHUB_OUTPUT
echo "node_udp_range_start=45200" >> $GITHUB_OUTPUT
echo "prover_node_tcp_range_start=41200" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit a078c95

Please sign in to comment.