-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
How to run more than one PXE in the sandbox
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,33 @@ | ||
--- | ||
title: How to run more than one PXE in the sandbox | ||
--- | ||
|
||
When you run the sandbox, the Aztec node and PXE have their own http server. This makes it possible to run two PXEs on your local machine, which can be useful for testing that notes are accurately stored and remaining private in their respective PXEs. | ||
|
||
We are working on a better solution for this so expect an update soon, but currently you can follow this guide. | ||
|
||
## Run the sandbox in one terminal | ||
|
||
Rather than use the usual command, run: | ||
```bash | ||
docker-compose up | ||
``` | ||
This removes any other arguments, allowing you to ensure an isolated environment for the sandbox so it doesn't interfere with another PXE. | ||
|
||
## Run PXE mode in another terminal | ||
|
||
In another terminal, run: | ||
|
||
```bash | ||
docker-compose run -e MODE=pxe -e PXE_PORT=8085 -e AZTEC_NODE_URL='http://aztec-aztec-1:8079' -e TEST_ACCOUNTS='false' -p 8085:8085 aztec | ||
``` | ||
This does a few things: | ||
* Starts in PXE mode | ||
* Passes the current Aztec node URL | ||
* Does not load new test accounts | ||
* Sets a port to listen on | ||
* Only runs Aztec PXE, not Ethereum | ||
|
||
This command uses the default ports, so they might need to be changed depending on yuor configuration. | ||
|
||
|