Mainnet Node Launch
Last updated
Last updated
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).
Thepatex-chain
component synchronizes from both other , meaning L2, and L1 Ethereum if necessary.
To synchronize only from L1, you edit the 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)
The recommended method to create a replica node is to use and the . It include all the configuration settings for 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.
Everything you need just clone the repository and run a script on pre-installed OS:
The Docker node exposed RPC port 9545. After containers is deployed and have running status, you can make RPC requests. Example eth_blockNumber
api:
Here are the instructions if you want 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 various packages inside of the Patex Network repository.
Build patex-chain
:
The next step is to download the data directory for patex-chain
.
Download the correct data directory snapshot.
Create the data directory inpatex-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:
patex-chain
pt-node
Make sure to change << URL to L1 >>
to a service provider's URL for the L1 network ( L1 Ethereum Mainnet).
It is best to start patex-chain
first and shut it down last.
Clone the repository (opens new window).
Clone :
(download file)