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

Upgrade to v2.4.0 #243

Open
Normalnoise opened this issue Apr 7, 2024 · 0 comments
Open

Upgrade to v2.4.0 #243

Normalnoise opened this issue Apr 7, 2024 · 0 comments

Comments

@Normalnoise
Copy link
Contributor

Normalnoise commented Apr 7, 2024

Swan Provider v2.4.0 release

Highlights!

Please see release log

How to upgrade to v2.4.0?

Scenario One

  • If you are a new user, you can install and config the go-swan-provider following this instruction.

Scenario Two

If you have installed the previous version, you can upgrade to the latest version v2.4.0 by following the steps:

(1) Stop your swan-provider

(2) Set your $SWAN_PATH: export SWAN_PATH="/data/.swan", default ~/.swan

(3) Install and Run the new version swan-provider:

Option 1️⃣ : Prebuilt package
wget --no-check-certificate https://raw.githubusercontent.com/filswan/go-swan-provider/release-2.4.0/install.sh
chmod +x ./install.sh
./install.sh

# Start the swan-provider
ulimit -SHn 1048576
export SWAN_PATH = "/data/.swan"
nohup swan-provider-2.4.0-linux-amd64 daemon >> swan-provider.log 2>&1 & 
Option 2️⃣ : Source code
git clone https://github.com/filswan/go-swan-provider.git
cd go-swan-provider
git checkout release-2.4.0
./build_from_source.sh

# Start the swan-provider
ulimit -SHn 1048576
export SWAN_PATH = "/data/.swan"
nohup swan-provider daemon >> swan-provider.log 2>&1 & 

Note:

  • If you set a different $SWAN_PATH, you need to reconfigure your configuration according to the steps
  • If you set the same $SWAN_PATH, the old configuration file will be backed up in the $SWAN_PATH when you build and install the swan-provider

Scenario Three

If you have run the boostd to import the deals, you can receive the deals from filswan by the following steps:

(1) Install the swan-provider according to the section
(2) Move your boostd repo to the $SWAN_PATH and move the boostd binary to the /usr/local/bin/:

mkdir $SWAN_PATH/provider/boost
mv ~/.boost/* $SWAN_PATH/provider/boost/

mv boostd /usr/local/bin/

(3) Config the config.toml according to the section

‼️ ‼️ Note: If you are upgrading from previous version of Boostd, you must add localIndexDirectory.Leveldb in the boost config file.

vi $SWAN_PATH/provider/boost/config.toml
[localIndexDirectory.Leveldb]
Enabled = true

(4) Run the swan-provider in the background.

ulimit -SHn 1048576
export SWAN_PATH = "/data/.swan"
nohup swan-provider daemon >> swan-provider.log 2>&1 & 

Do you have questions?

Please leave a comment.

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