Testnet Node Launch
# Configuration choices
Hardware requirements
Replicas need to store the transaction history of Patex and to run Geth. They need to be relatively powerful machines (real or virtual). We recommend at least 16 GB RAM, and an SSD drive with at least 500 GB free (for the production network).
Source of synchronization
Thepatex-chain
component synchronizes with both other Patex Nodes, meaning L2, and L1 Ethereum if necessary.
To synchronize only from L1, you edit the pt-node configuration (opens new window) to set OP_NODE_P2P_DISABLE
to true
.
When you use RPC to get block information (https://github.com/patex-ecosystem/patex-network/blob/main/specs/rollup-node.md#l2-output-rpc-method), you can specify one of four options for blockNumber
:
an actual block number
pending: Latest L2 block
latest: Latest block written to L1
finalized: Latest block fully finalized on L1 (a process that takes 12 minutes with Proof of Stake)
# Docker configuration
The recommended method to create a replica node is to use Docker (opens new window) and the Sepolia Testnet RPC node Docker deploy script we provide. It include all the configuration settings to run the node. This is the recommended method because it is what we use for our own systems. As such, the docker images go through a lot more tests than any other configuration.
Configuring and running the node
All you need just clone the Patex network repository and run a script on Docker pre-installed OS:
The Docker node exposed RPC port 19545. After containers is deployed and have running status, you can make RPC requests. Example eth_blockNumber
api:
# Non-docker configuration
These instructions explain how to build your own read-only replica without relying on our images. These instructions were generated on an Ubuntu 20.04 box, but they should work with other systems too.
Note: This is not the recommended configuration. While we did QA on these instructions and they work, the QA that the docker images undergo is much more extensive.
Build the Patex repository
Clone the Patex network repository (opens new window).
Build the various packages inside of the Patex Network repository.
Build patex-chain
Clone patex-chain:
Build
patex-chain
:
Get the data dir
The next step is to download the data directory for patex-chain
.
Download the correct data directory snapshot.
Patex Testnet (download file)
Create the data directory in
patex-chain
and fill it. Note that these directions assume the data directory snapshot is at~
, the home directory. Modify if needed.Create a shared secret with
pt-node
:Download rollup.json config for
pt-node:
Scripts to start the different components
patex-chain
patex-chain
pt-node
pt-node
Make sure to change << URL to L1 >>
to a service provider's URL for the L1 network ( L1 Ethereum Sepolia Testnet).
Operations
It's best to start patex-chain
first and shut it down last.
Last updated