Skip to content

Seal-Clubber/cyberpool-ravencoin-server

 
 

Repository files navigation

Cyber Pool Ravencoin Server - v1.0.1 Special Edition

License

Highly Efficient Stratum Server for Ravencoin!


Cyber Pool Ravencoin consists of 2 main modules:

Project Link
Cyberpool Ravencoin Server https://github.com/Seal-Clubber/cyberpool-ravencoin-server
Cyberpool Ravencoin Stratum https://github.com/Seal-Clubber/Ravencoin-stratum-server

Requirements

NOTE: These requirements will be installed in the install section!

  • Ubuntu Server 20.04.* LTS
  • Coin daemon
  • Node Version Manager
  • Node 12.22.6
  • Process Manager 2 / pm2
  • Redis Server
  • ntp

Install RavenCoin Daemon

adduser pool
usermod -aG sudo pool
su - pool
sudo apt install wget
wget https://github.com/RavenProject/Ravencoin/releases/download/v4.3.2.1/raven-4.3.2.1-x86_64-linux-gnu.zip
unzip raven-4.3.2.1-x86_64-linux-gnu.zip
rm raven*zip
cd linux
tar -xvf raven-4.3.2.1-x86_64-linux-gnu.tar.gz
rm raven*gz
cd raven-4.3.2.1/bin
mkdir -p ~/.raven/
touch ~/.raven/raven.conf
echo "rpcuser=user1" > ~/.raven/raven.conf
echo "rpcpassword=pass1" >> ~/.raven/raven.conf
echo "prune=550" >> ~/.raven/raven.conf
echo "daemon=1" >> ~/.raven/raven.conf
./ravend
./raven-cli getnewaddress

Example output: RNs3ne88DoNEnXFTqUrj6zrYejeQpcj4jk - it is the address of your pool, you need to remember it and specify it in the configuration file pool_configs/ravencoin.json.

./raven-cli getaddressesbyaccount ""

Information about pool wallet address.

./raven-cli getwalletinfo

Get more information.

./raven-cli getblockcount

Information about synchronization of blocks in the main chain.

./raven-cli help

Other helpfull commands.


Install Server

sudo apt install git -y
cd ~
git config --global http.https://gopkg.in.followRedirects true
git clone https://github.com/Seal-Clubber/cyberpool-ravencoin-server.git
cd cyberpool-ravencoin-server/
./install.sh

or

curl -L https://raw.githubusercontent.com/Seal-Clubber/cyberpool-ravencoin-server/master/install.sh | bash

Configure Server

Change "stratumHost": "raven.cyberpool.org", to your IP or DNS in file config.json:

cd ~/cyberpool-ravencoin-server
nano config.json
{
    "devmode": false,
    "devmodePayMinimim": 0.25,
    "devmodePayInterval": 120,
    "logips": true,       
    "anonymizeips": true,
    "ipv4bits": 16,
    "ipv6bits": 16,
    "defaultCoin": "ravencoin",
    "logger" : {
        "level" : "debug",
        "file" : "/home/pool/cyberpool-ravencoin-server/logs/ravencoin_debug.log"
    },
    "cliHost": "127.0.0.1",
    "cliPort": 17117,
    "clustering": {
        "enabled": true,
        "forks": "auto"
    },
    "defaultPoolConfigs": {
        "blockRefreshInterval": 333,
        "jobRebroadcastTimeout": 25,
        "connectionTimeout": 600,
        "emitInvalidBlockHashes": false,
        "validateWorkerUsername": true,
        "tcpProxyProtocol": false,
        "banning": {
            "enabled": true,
            "time": 600,
            "invalidPercent": 50,
            "checkThreshold": 500,
            "purgeInterval": 300
        },
        "redis": {
            "host": "127.0.0.1",
            "port": 6379
        }
    },
    "website": {
        "enabled": true,
        "sslenabled": false,
        "sslforced": false,
        "host": "0.0.0.0",
        "port": 3001,
        "sslport": 443,
        "sslkey": "/home/pool/cyberpool-ravencoin-server/certs/privkey.pem",
        "sslcert": "/home/pool/cyberpool-ravencoin-server/certs/fullchain.pem",
        "stratumHost": "raven.cyberpool.org",
        "stats": {
            "updateInterval": 300,
            "historicalRetention": 43200,
            "hashrateWindow": 300
        }
    },
    "redis": {
        "host": "127.0.0.1",
        "port": 6379
    }
}

Change "address": "RNs3ne88DoNEnXFTqUrj6zrYejeQpcj4jk", to your pool created wallet address in file ravencoin.json:

cd ~/cyberpool-ravencoin-server/pools
nano ravencoin.json
{
    "enabled": true,
    "coin": "ravencoin.json",
    "address": "RNs3ne88DoNEnXFTqUrj6zrYejeQpcj4jk",
    "donateaddress": "RNs3ne88DoNEnXFTqUrj6zrYejeQpcj4jk",
    "rewardRecipients": {
        "RNs3ne88DoNEnXFTqUrj6zrYejeQpcj4jk": 0.5
    },
    "paymentProcessing": {
        "enabled": true,
        "schema": "PROP",
        "paymentInterval": 300,
        "minimumPayment": 1,
        "maxBlocksPerPayment": 1,
        "minConf": 30,
        "coinPrecision": 8,
        "daemon": {
            "host": "127.0.0.1",
            "port": 8766,
            "user": "user1",
            "password": "pass1"
        }
    },
    "ports": {
	"10008": {
            "diff": 0.05,
    	    "varDiff": {
    	        "minDiff": 0.025,
    	        "maxDiff": 1024,
    	        "targetTime": 10,
    	        "retargetTime": 60,
    	        "variancePercent": 30,
    		"maxJump": 25
    	    }
        },
        "10016": {
	    "diff": 0.10,
            "varDiff": {
                "minDiff": 0.05,
                "maxDiff": 1024,
    	        "targetTime": 10,
    	        "retargetTime": 60,
    	        "variancePercent": 30,
		"maxJump": 25
            }
        },
        "10032": {
	    "diff": 0.20,
            "varDiff": {
    		"minDiff": 0.10,
    		"maxDiff": 1024,
    	        "targetTime": 10,
    	        "retargetTime": 60,
    	        "variancePercent": 30,
    		"maxJump": 50
    	    }
        },
	"10256": {
	    "diff": 6,
            "varDiff": {
                "minDiff": 4,
                "maxDiff": 8,
    	        "targetTime": 10,
    	        "retargetTime": 60,
    	        "variancePercent": 30,
		"maxJump": 25
            }
        }
    },
    "daemons": [
        {
            "host": "127.0.0.1",
            "port": 8766,
            "user": "user1",
            "password": "pass1"
        }
    ],
    "p2p": {
        "enabled": false,
        "host": "127.0.0.1",
        "port": 8767,
        "disableTransactions": true
    }
}

Run Server

cd ~/cyberpool-ravencoin-server
bash server-start.sh

Donates for developers of Cyberpool Ravencoin Server

  • BTC - 1H8Ze41raYGXYAiLAEiN12vmGH34A7cuua
  • LTC - LSE19SHK3DMxFVyk35rhTFaw7vr1f8zLkT
  • ZEC - t1NTX2qJAhQrEdTRNaqVckznNMaqUSwPLvp
  • ETH - 0xb3a152943969C41D338d972af0677c40E42Ac850
  • ETC - 0x6F2B787312Df5B08a6b7073Bdb8fF04442B6A11f

License

Licensed under the GPL-3.0
Copyright (c) 2021 Cyber Pool (cyberpool.org)

About

Special Edition v1.0.1

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 81.4%
  • HTML 9.2%
  • JavaScript 9.1%
  • Other 0.3%