Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Upgrade to the Latest Version #137

Open
Normalnoise opened this issue Sep 5, 2024 · 0 comments
Open

How to Upgrade to the Latest Version #137

Normalnoise opened this issue Sep 5, 2024 · 0 comments

Comments

@Normalnoise
Copy link
Collaborator

How to Upgrade to the Latest Version

  • Install the GO environment
wget -c https://golang.org/dl/go1.21.7.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local

echo "export PATH=$PATH:/usr/local/go/bin" >> ~/.bashrc && source ~/.bashrc
  • Get the latest branch
git clone https://github.com/swanchain/go-computing-provider.git
cd go-computing-provider
git checkout releases
  • Compile

The compiled binary computing-provider will be located in the current directory

make clean && make mainnet
make install
  • Start with the new binary

    Replace the environment variables with your own configuration values

    • Start FCP

      export CP_PATH="<YOUR_CP_PATH>"
      nohup computing-provider run >> cp.log 2>&1 &
    • Start ECP

      #!/bin/bash
      export CP_PATH="<YOUR_CP_PATH>"
      export FIL_PROOFS_PARAMETER_CACHE=$PARENT_PATH
      export RUST_GPU_TOOLS_CUSTOM_GPU="GeForce RTX 4090:16384"
      
      nohup ./computing-provider ubi daemon >> cp.log 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant