Skip to main content

Step 2: Run an Octez node on Weeklynet

Now that the Octez node is configured to join Weeklynet, we can launch it and make its RPC available.

  1. Optional: If it has been a few days since Weeklynet was restarted on Wednesday morning, you can speed up the bootstrapping process by loading a snapshot:

    1. Download a snapshot of Weeklynet from https://snapshot.tzinit.org based on the instructions on that site. For example, the command to download the snapshot may look like this:

      wget -O snapshot_file https://snapshots.eu.tzinit.org/weeklynet/rolling
    2. Load the snapshot in the node by running this command:

      octez-node snapshot import snapshot_file

      If you see the error "The chain name contained in the snapshot file is not consistent with the network configured in the targeted data directory," the snapshot is for the previous instance of Weeklynet and no snapshot is available for this week. Continue with the next step as usual.

  2. Start the node:

    octez-node run --rpc-addr 127.0.0.1:8732 --log-output="$HOME/octez-node.log"

At first launch, the node generates a fresh identity file used to identify itself on the Weeklynet L1 network. Then it bootstraps the chain, which takes a variable amount of time depending on how many blocks need to be loaded. At worst, if the network has been running for nearly a week, it can take a few hours.

Fortunately, we can continue to set up our Weeklynet baking infrastructure while the node is bootstrapping. Continue to Step 3: Set up a baker account on Weeklynet.