Giter Club home page Giter Club logo

beam-mine's Introduction

BEAM OPEN SOURCE POOL GUIDE

(With credit to Greg of Icemining Pools for his excellent efforts in building the stratum and pool, Lolliedieb for the Beamhashverify to enable this pool to switch between BeamHashI, BeamHashII and BeamHashIII and also to VSnation for the magically unique BASiC payment processor)

Open Source Beam Pool Software w/ Guide

By installing the pool software and BASiC Payment processor from this guide, you fully agree to this following disclaimer:

DISCLAIMER: This Beam open source pool software comes with no warranty and it is the sole responsibility of the user to ensure the functions and design of their own deployment, meet the required standards which a cryptocurrency miner would expect to see in a mining pool. Where the code is complete in-as-much as the pool stratum, API and a barebones deployment of the GUI is functional and working, it is also the responsibility of the user to ensure that they have adept knowledge in pool systems. This code is offered freely under MIT licencing and the authors, host and publishers will hold no responsibility, nor support for installation or troubleshooting.

The pool software is also now offered with Beam’s BASiC rewards distribution function and this part is contained in accompanying repository, with it’s own README file and same disclaimer above applies.

A testing pool built from this software can be found at https://pool.raskul.com/ – so, you can see what you will get by navigating to this link.

All OK with that? then read on…

To begin compiling the Beam open source pool software, you will need to find a suitable VPS (Virtual Private Server) from a respectable hosting company. On the BEAM ACCEPTED HERE pages you can find a few who accept Beam for their services.

Once you have found a VPS, please log in and you can start to set up the pool.

Firstly update your server.

sudo apt update

sudo apt upgrade

Next, install the required dependencies to build and run the pool

sudo apt install python-dev build-essential libsodium-dev npm libboost-all-dev libboost-dev

You will also need to install NODEJS 10.x and MYSQL, separately from the above dependencies

sudo apt install curl

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

sudo apt-get install -y nodejs

sudo apt install -y mysql-server

Update & Upgrade again just to make sure all these are current releases.

sudo apt-get update

sudo apt-get upgrade

Next, install REDIS SERVER

sudo apt-get install redis-server

and enable the REDIS service

sudo systemctl enable redis-server.service

This will then require a server reboot…

sudo reboot now

Once reboot is complete, log into your server again as root and install php-redis

sudo apt-get install php-redis

You are now ready to clone the repository which holds all the pool code!

git clone https://github.com/r45ku1/beam-mine.git

Go into the beam-pool folder and make sure it’s up to date.

cd beam-mine

npm update

npm install

Now you need to configure your MYSQL Db’s

cd /etc/mysql/mysql.conf.d/

nano /etc/mysql/mysql.conf.d/mysqld.cnf

and edit the line as shown:

bind-address            = 0.0.0.0

save the file.

You will now want to build the Beam node and Wallet which will link to the pool stratum, and amend your config files.

cd

mkdir beam-node

cd beam-node

wget https://beam.mw/downloads/mainnet-linux (and use the node link )

tar -xvf beam-node-VERSION.tar.gz

wget https://beam.mw/downloads/mainnet-linux (and use the wallet link )

tar -xvf beam-wallet-VERSION.tar.gz

Make a subfolder named stratum_secrets

mkdir stratum_secrets

cd stratum_secrets

You will need to now generate a set of ssl key/certificate for your pool, to do this run the following command

openssl req -x509 -newkey rsa:4096 -keyout beam-stratum-key.pem -out beam-stratum-crt.pem -days 3650 -nodes -subj '/CN=localhost’

Now rename the two files created in this process using.

mv beam-stratum-key.pem stratum.key
mv beam-stratum-crt.pem stratum.crt

You will now have one file stratum.key and one file stratum.crt in this folder. Go back up a level

cd ..

Next step will be to choose a password for the wallet and add it to your beam-wallet.cfg file. Open the beam-wallet.cfg file using a text editor

nano beam-wallet.cfg

and put your password at the command line:

pass=YOURPASSWORD

Uncomment the line by removing the single # sign.

Also amend there:

node_addr=127.0.0.1:10127

Again, uncomment this line by removing the single # sign.Those are the only 2 configurations that must be done on beam-wallet.cfg Save the file and close it.

You can now initiate your Beam Pool wallet

./beam-wallet init

Save the output info in a safe place. This is your seed phrase and wallet default address, into which all mined coins from the pool, will be stored prior to distribution to your miners

You will also want to set that default address to never expire

./beam-wallet change_address_expiration --address=YOURDEFAULTWALLETADDRESS --expiration_time=never

Next you will need two keys to configure them the node. Please run the following command

./beam-wallet export_miner_key --subkey=1

./beam-wallet export_owner_key

Take the keys and put in the beam-node.cfg on the lines

owner_key=

&

miner_key=

Uncomment the line by removing the single # signs on each line. Now edit #password for keys in beam-node.cfg so that it matches #password for the wallet in beam-wallet.cfg – this is the password that you created previously.

pass=YOURPASSWORD

Whilst still within a text editor in beam-node.cfg, locate each of the below lines and amend;

port=10127
log_level=verbose
file_log_level=verbose
peer=node01.mainnet.beam.mw:8100,eu-node02.mainnet.beam.mw:8100,eu-node03.mainnet.beam.mw:8100,eu-node04.mainnet.beam.mw:8100,us-node01.mainnet.beam.mw:8100,us-node02.mainnet.beam.mw:8100,us-node03.mainnet.beam.mw:8100,us-node04.mainnet.beam.mw:8100,ap-node01.mainnet.beam.mw:8100,ap-node02.mainnet.beam.mw:8100,ap-node03.mainnet.beam.mw:8100,ap-node04.mainnet.beam.mw:8100,ap-hk-node01.mainnet.beam.mw:8100,ap-hk-node02.mainnet.beam.mw:8100,ap-hk-node03.mainnet.beam.mw:8100,ap-hk-node04.mainnet.beam.mw:8100
peers_persistent=1
stratum_port=3333
stratum_secrets_path=./stratum_secrets/

Open a new command line window which you are prepared to leave open (or screen -dmS it) all the time – this command window will contain the perpetual node connection. It is imperative that this process is never stopped. Navigate into your beam-node folder and start the node by typing;

./beam-node

Whilst allowing the node to synchronise and depending on your device firewall settings, you may need to “allow” it to open all the ports required to run the pool. Have a separate terminal window open for extra commands (these are all the hard-coded ports which the pool will utilise)

sudo ufw allow 10127

sudo ufw allow 8010

sudo ufw allow 80

sudo ufw allow 1690

sudo ufw allow 3333

sudo ufw allow 6379

sudo ufw allow 6543

sudo ufw allow 3306

sudo ufw allow 666

Let the node synchronise with the network by downloading the Beam blockchain. This may take a while, depending on your connection speed. Once fully synchronised, you will see your Beam node collect the most up to date block height. Compare the node height with https://explorer.beam.mw/ and ensure it matches before continuing. The % will also show 100% in the node printout.

Once the node is fully synchronised, use a command line window which you are prepared to leave open all the time (or screen -dmS it). Navigate within the command line to your beam-node folder and type:

./beam-wallet listen

This enables the Beam pool wallet to perpetually listen at the Beam node. Now let’s move onto your MYSQL database setup. Use an third-party software (such as sequelpro) to manage your schema tables. You will also need to create a MYSQL USER outside of ROOT to manage your Beam database (which we will create as follows…)

mysql -u root

CREATE USER 'newMYSQLuser'@'localhost' IDENTIFIED BY 'MYSQLpassword';

GRANT ALL PRIVILEGES ON *.* TO 'newMYSQLuser'@'localhost';

FLUSH PRIVILEGES;

And confirm your new user has privileges

SHOW GRANTS FOR 'database_user'@'localhost';

Now in your MYSQL third party software (sequelpro or similar) create your tables within a new database ‘beam’

CREATE TABLE `accounts` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `coinid` int(11) DEFAULT NULL,
  `username` varchar(96) DEFAULT NULL,
  `ip` varchar(96) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;

CREATE TABLE `blocks` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `coinid` int(11) DEFAULT NULL,
 `time` int(18) DEFAULT NULL,
  `userid` int(11) DEFAULT NULL,
  `workerid` int(11) DEFAULT NULL,
  `height` int(11) DEFAULT NULL,
  `paid` tinyint(1) DEFAULT NULL,
  `paid_at` int(96) DEFAULT NULL,
  `sharediff` float DEFAULT NULL,
  `blockdiff` float DEFAULT NULL,
  `confirmations` float DEFAULT NULL,
  `difficulty` float DEFAULT NULL,
  `blockhash` varchar(64) DEFAULT NULL,
  `reward` float DEFAULT NULL,
  `category` varchar(32) DEFAULT NULL,
  `jobid` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=202 DEFAULT CHARSET=utf8mb4;

CREATE TABLE `shares` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `coinid` int(11) DEFAULT NULL,
  `userid` int(11) DEFAULT NULL,
  `blockhash` varchar(64) DEFAULT NULL,
  `height` int(11) DEFAULT NULL,
  `difficulty` double DEFAULT NULL,
  `sharediff` double DEFAULT NULL,
  `workerid` int(96) DEFAULT NULL,
 `time` int(18) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2000 DEFAULT CHARSET=utf8mb4;

CREATE TABLE `workers` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `userid` int(11) DEFAULT NULL,
  `ip` varchar(96) DEFAULT NULL,
  `name` varchar(96) DEFAULT NULL,
  `difficulty` int(11) DEFAULT NULL,
  `rigname` varchar(32) DEFAULT NULL,
 `time` int(18) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4;

EDIT YOUR CONFIGURATION FILES

LOCATION: beam-mine/config.json

should be amended in the REDIS sections

    "redis": {
    "host": "127.0.0.1",
    "port": 6379,
    "password": ""

and in the website section, to reflect the IP of the VPS upon which you are installing the pool (the below example is Raskul Beam Pool, please use your own IP, and port remains 8010).

    "website": {
    "enabled": true,
    "host": "94.130.104.164",
    "port": 8010,
    "stratumHost": "94.130.104.164",
    "stats": {

LOCATION beam-mine/pool_configs/beam.json amend to specify the path to your stratum.key and stratum.crt

 },
 "tlsOptions": {
 "enabled": true,
 "serverKey": "../stratum_secrets/stratum.key",
 "serverCert": "../stratum_secrets/stratum.crt",
 "ca": ""

and in the MYSQL section (mposMode section) this should reflect the newMYSQLuser and MYSQLpassword you created earlier

    },
    "mposMode": {
    "enabled": true,
    "host": "127.0.0.1",
    "port": 3306,
    "user": "newMYSQLuser",
    "password": "MYSQLpassword",
    "database": "beam",
    "checkPassword": false,
    "autoCreateWorker": true
    }

LOCATION beam-mine/libs/beam-blockconf.js amend const=api and the MYSQL pieces

 const coinid = 2423;
 const coin_symbol = 'BEAM';
 const confirmations = 240;
 const api = 'http://127.0.0.1:666';
 module.exports = async function() {
 const connection = await mysql.createConnection({
 host: '127.0.0.1',
 user: 'newMYSQLuser',
 password: 'MYSQLpassword',
 database: 'beam',

LOCATION beam-mine/libs/stats.js amend the MYSQLconnection here;

 async function setupMysqlConnection() {
 this.connection = await mysql.createConnection({
 host: '127.0.0.1',
 user: 'newMYSQLuser',
 password: 'MYSQLpassword',
 database: 'beam',

INSTALL THE WALLET-API

From the web page at https://github.com/BeamMW/beam/releases find the most recent version of the Linux Explorer Node

wget https://github.com/BeamMW/beam/releases/download/WALLET-API.tar.gz

tar -xvf WALLET-API.tar.gz

Amend the configuration file within this folder as follows

nano wallet-api.cfg 

Amend the password to match your owner key password

pass=yourpassword

node address to listen the api server on

node_addr=127.0.0.1:101274

port to start server on

port=11111

use JSON RPC over http

use_http=1

INSTALL THE EXPLORER-NODE (API)

From the web page at https://github.com/BeamMW/beam/releases find the most recent version of the Linux Explorer Node

wget https://github.com/BeamMW/beam/releases/download/EXPLORER-NODE.tar.gz

tar -xvf EXPLORER-NODE.tar.gz

And amend the configuration file within this folder as follows

nano explorer-node.cfg 

Peer address to point the local api server to

peer address

peer=YOUR SERVER IP:PORT

port to start the local api server on

api_port=666

owner key from node setup steps

key_owner=YOUR_OWNER_KEY_FROM_NODE_CONFIGURATION

password for owner key

pass=YOUR_PASSWORD_FROM_NODE_CONFIGURATION

TIME TO GET IT ALL RUNNING!

Give your server a quick reboot

sudo reboot now

Once powered up and logged in, make sure you have your node 100% synch and screen it, buy going into beam-node folder and using the following command:

screen -dmS NODE ./beam-node

Navigate into your beam-explorer folder and run the API using. the following command:

screen -dmS EXPLORER ./explorer-node

Run the wallet API (and enable offline payments):

screen -dmS API ./wallet-api --enable_lelantus

Set up your wallet listener from within the beam-node folder:

screen -dmS LISTEN ./beam-wallet listen -n YOURSERVERIP:10127

RUN THE POOL

From within the beam-pool folder, run the command as follows;

screen -dmS POOL node init.js

Your (very basic) pool GUI will then be publicly accessible from

http://YOUR_POOL_IP:8010

If you wish to utilise it, you can now set up the BASiC Payment Processor from https://github.com/r45ku1/basic

All code released with no warranty and no support assistance.

beam-mine's People

Contributors

dependabot[bot] avatar r45ku1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

beam-mine's Issues

worker stats issue

hello,
everything works except worker status

debug:
RESPONSE 386dbe66c3d52957b864a888220aa2577db89888362c30df3xxxxxxxxxxxxxxxxxxxxx
/root/beam-mine/libs/stats.js:361
for (var i = 0; i < results.length; i++) {
^

TypeError: Cannot read property 'length' of undefined
at /root/beam-mine/libs/stats.js:361:40
at Prepare.Commands.Prepare [as onResult] (/root/beam-mine/node_modules/mysql2/lib/connection.js:595:11)
at Prepare.execute (/root/beam-mine/node_modules/mysql2/lib/commands/command.js:30:14)
at Connection.handlePacket (/root/beam-mine/node_modules/mysql2/lib/connection.js:408:32)
at PacketParser.Connection.packetParser.p [as onPacket] (/root/beam-mine/node_modules/mysql2/lib/connection.js:70:12)
at PacketParser.executeStart (/root/beam-mine/node_modules/mysql2/lib/packet_parser.js:75:16)
at Socket.Connection.stream.on.data (/root/beam-mine/node_modules/mysql2/lib/connection.js:77:25)
at Socket.emit (events.js:198:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
2021-09-17 10:35:05 [Master] [Website] Website process died, spawning replacement...

Ubuntu 18.04 Error on npm update step

Ubuntu 18.04 Error on npm update step:

gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Linux 4.15.0-117-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/user/beam-mine/node_modules/beamhashverify
gyp ERR! node -v v14.11.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: env V=1 node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/user/.npm/_logs/2020-09-20T08_07_45_243Z-debug.log

End of log file:

6811 silly saveTree │ ├── [email protected]
6811 silly saveTree │ ├── [email protected]
6811 silly saveTree │ ├── [email protected]
6811 silly saveTree │ ├── [email protected]
6811 silly saveTree │ └── [email protected]
6811 silly saveTree ├─┬ [email protected]
6811 silly saveTree │ └── [email protected]
6811 silly saveTree ├─┬ [email protected]
6811 silly saveTree │ └── [email protected]
6811 silly saveTree └── [email protected]
6812 verbose stack Error: [email protected] install: env V=1 node-gyp rebuild
6812 verbose stack Exit status 1
6812 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
6812 verbose stack at EventEmitter.emit (events.js:314:20)
6812 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
6812 verbose stack at ChildProcess.emit (events.js:314:20)
6812 verbose stack at maybeClose (internal/child_process.js:1047:16)
6812 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
6813 verbose pkgid [email protected]
6814 verbose cwd /home/user/beam-mine
6815 verbose Linux 4.15.0-117-generic
6816 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "update"
6817 verbose node v14.11.0
6818 verbose npm v6.14.8
6819 error code ELIFECYCLE
6820 error errno 1
6821 error [email protected] install: env V=1 node-gyp rebuild
6821 error Exit status 1
6822 error Failed at the [email protected] install script.
6822 error This is probably not a problem with npm. There is likely additional logging output above.
6823 verbose exit [ 1, true ]

All the warnings:

@ubuntu:~/beam-mine$ npm update

[email protected] install /home/master/beam-mine/node_modules/beamhashverify
env V=1 node-gyp rebuild

make: Entering directory '/home/master/beam-mine/node_modules/beamhashverify/build'
g++ '-DNODE_GYP_MODULE_NAME=beamhashverify' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DHAVE_DECL_STRNLEN=1' '-DHAVE_BYTESWAP_H=1' '-DBUILDING_NODE_EXTENSION' -I/home/master/.cache/node-gyp/14.11.0/include/node -I/home/master/.cache/node-gyp/14.11.0/src -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/config -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/openssl/include -I/home/master/.cache/node-gyp/14.11.0/deps/uv/include -I/home/master/.cache/node-gyp/14.11.0/deps/zlib -I/home/master/.cache/node-gyp/14.11.0/deps/v8/include -I../../nan -I../. -I/usr/include -I/usr/include/boost -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++11 -Wl,--whole-archive -fPIC -fexceptions -MMD -MF ./Release/.deps/Release/obj.target/beamhashverify/support/cleanse.o.d.raw -c -o Release/obj.target/beamhashverify/support/cleanse.o ../support/cleanse.cpp
g++ '-DNODE_GYP_MODULE_NAME=beamhashverify' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DHAVE_DECL_STRNLEN=1' '-DHAVE_BYTESWAP_H=1' '-DBUILDING_NODE_EXTENSION' -I/home/master/.cache/node-gyp/14.11.0/include/node -I/home/master/.cache/node-gyp/14.11.0/src -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/config -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/openssl/include -I/home/master/.cache/node-gyp/14.11.0/deps/uv/include -I/home/master/.cache/node-gyp/14.11.0/deps/zlib -I/home/master/.cache/node-gyp/14.11.0/deps/v8/include -I../../nan -I../. -I/usr/include -I/usr/include/boost -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++11 -Wl,--whole-archive -fPIC -fexceptions -MMD -MF ./Release/.deps/Release/obj.target/beamhashverify/uint256.o.d.raw -c -o Release/obj.target/beamhashverify/uint256.o ../uint256.cpp
g++ '-DNODE_GYP_MODULE_NAME=beamhashverify' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DHAVE_DECL_STRNLEN=1' '-DHAVE_BYTESWAP_H=1' '-DBUILDING_NODE_EXTENSION' -I/home/master/.cache/node-gyp/14.11.0/include/node -I/home/master/.cache/node-gyp/14.11.0/src -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/config -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/openssl/include -I/home/master/.cache/node-gyp/14.11.0/deps/uv/include -I/home/master/.cache/node-gyp/14.11.0/deps/zlib -I/home/master/.cache/node-gyp/14.11.0/deps/v8/include -I../../nan -I../. -I/usr/include -I/usr/include/boost -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++11 -Wl,--whole-archive -fPIC -fexceptions -MMD -MF ./Release/.deps/Release/obj.target/beamhashverify/arith_uint256.o.d.raw -c -o Release/obj.target/beamhashverify/arith_uint256.o ../arith_uint256.cpp
g++ '-DNODE_GYP_MODULE_NAME=beamhashverify' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DHAVE_DECL_STRNLEN=1' '-DHAVE_BYTESWAP_H=1' '-DBUILDING_NODE_EXTENSION' -I/home/master/.cache/node-gyp/14.11.0/include/node -I/home/master/.cache/node-gyp/14.11.0/src -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/config -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/openssl/include -I/home/master/.cache/node-gyp/14.11.0/deps/uv/include -I/home/master/.cache/node-gyp/14.11.0/deps/zlib -I/home/master/.cache/node-gyp/14.11.0/deps/v8/include -I../../nan -I../. -I/usr/include -I/usr/include/boost -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++11 -Wl,--whole-archive -fPIC -fexceptions -MMD -MF ./Release/.deps/Release/obj.target/beamhashverify/random.o.d.raw -c -o Release/obj.target/beamhashverify/random.o ../random.cpp
g++ '-DNODE_GYP_MODULE_NAME=beamhashverify' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DHAVE_DECL_STRNLEN=1' '-DHAVE_BYTESWAP_H=1' '-DBUILDING_NODE_EXTENSION' -I/home/master/.cache/node-gyp/14.11.0/include/node -I/home/master/.cache/node-gyp/14.11.0/src -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/config -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/openssl/include -I/home/master/.cache/node-gyp/14.11.0/deps/uv/include -I/home/master/.cache/node-gyp/14.11.0/deps/zlib -I/home/master/.cache/node-gyp/14.11.0/deps/v8/include -I../../nan -I../. -I/usr/include -I/usr/include/boost -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++11 -Wl,--whole-archive -fPIC -fexceptions -MMD -MF ./Release/.deps/Release/obj.target/beamhashverify/util.o.d.raw -c -o Release/obj.target/beamhashverify/util.o ../util.cpp
g++ '-DNODE_GYP_MODULE_NAME=beamhashverify' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DHAVE_DECL_STRNLEN=1' '-DHAVE_BYTESWAP_H=1' '-DBUILDING_NODE_EXTENSION' -I/home/master/.cache/node-gyp/14.11.0/include/node -I/home/master/.cache/node-gyp/14.11.0/src -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/config -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/openssl/include -I/home/master/.cache/node-gyp/14.11.0/deps/uv/include -I/home/master/.cache/node-gyp/14.11.0/deps/zlib -I/home/master/.cache/node-gyp/14.11.0/deps/v8/include -I../../nan -I../. -I/usr/include -I/usr/include/boost -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++11 -Wl,--whole-archive -fPIC -fexceptions -MMD -MF ./Release/.deps/Release/obj.target/beamhashverify/utilstrencodings.o.d.raw -c -o Release/obj.target/beamhashverify/utilstrencodings.o ../utilstrencodings.cpp
In file included from ../utilstrencodings.cpp:8:0:
../tinyformat.h: In function ‘const char* tinyformat::detail::streamStateFromFormat(std::ostream&, bool&, int&, const char*, const tinyformat::detail::FormatArg*, int&, int)’:
../tinyformat.h:707:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../tinyformat.h:708:9: note: here
case 'x': case 'p':
^~~~
../tinyformat.h:713:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../tinyformat.h:714:9: note: here
case 'e':
^~~~
../tinyformat.h:719:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../tinyformat.h:720:9: note: here
case 'f':
^~~~
../tinyformat.h:724:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
out.setf(std::ios::uppercase);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../tinyformat.h:725:9: note: here
case 'g':
^~~~
g++ '-DNODE_GYP_MODULE_NAME=beamhashverify' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DHAVE_DECL_STRNLEN=1' '-DHAVE_BYTESWAP_H=1' '-DBUILDING_NODE_EXTENSION' -I/home/master/.cache/node-gyp/14.11.0/include/node -I/home/master/.cache/node-gyp/14.11.0/src -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/config -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/openssl/include -I/home/master/.cache/node-gyp/14.11.0/deps/uv/include -I/home/master/.cache/node-gyp/14.11.0/deps/zlib -I/home/master/.cache/node-gyp/14.11.0/deps/v8/include -I../../nan -I../. -I/usr/include -I/usr/include/boost -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++11 -Wl,--whole-archive -fPIC -fexceptions -MMD -MF ./Release/.deps/Release/obj.target/beamhashverify/crypto/equihashR_impl.o.d.raw -c -o Release/obj.target/beamhashverify/crypto/equihashR_impl.o ../crypto/equihashR_impl.cpp
In file included from ../crypto/equihashR_impl.cpp:17:0:
.././crypto/equihashR.h:147:18: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
inline constexpr const size_t max(const size_t A, const size_t B) { return A > B ? A : B; }
^~~~~
../crypto/equihashR_impl.cpp: In instantiation of ‘int EquihashR<N, K, R>::InitialiseState(eh_HashState&) [with unsigned int N = 150; unsigned int K = 5; unsigned int R = 0; eh_HashState = blake2b_state__]’:
../crypto/equihashR_impl.cpp:691:74: required from here
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::key_length’ [-Wmissing-field-initializers]
blake2b_param param = {0};
^~~~~
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::fanout’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::depth’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::leaf_length’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::node_offset’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::xof_length’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::node_depth’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::inner_length’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::reserved’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::salt’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::personal’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp: In instantiation of ‘int EquihashR<N, K, R>::InitialiseState(eh_HashState&) [with unsigned int N = 150; unsigned int K = 5; unsigned int R = 3; eh_HashState = blake2b_state__]’:
../crypto/equihashR_impl.cpp:701:74: required from here
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::key_length’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::fanout’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::depth’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::leaf_length’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::node_offset’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::xof_length’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::node_depth’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::inner_length’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::reserved’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::salt’ [-Wmissing-field-initializers]
../crypto/equihashR_impl.cpp:67:19: warning: missing initializer for member ‘blake2b_param__::personal’ [-Wmissing-field-initializers]
g++ '-DNODE_GYP_MODULE_NAME=beamhashverify' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DHAVE_DECL_STRNLEN=1' '-DHAVE_BYTESWAP_H=1' '-DBUILDING_NODE_EXTENSION' -I/home/master/.cache/node-gyp/14.11.0/include/node -I/home/master/.cache/node-gyp/14.11.0/src -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/config -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/openssl/include -I/home/master/.cache/node-gyp/14.11.0/deps/uv/include -I/home/master/.cache/node-gyp/14.11.0/deps/zlib -I/home/master/.cache/node-gyp/14.11.0/deps/v8/include -I../../nan -I../. -I/usr/include -I/usr/include/boost -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++11 -Wl,--whole-archive -fPIC -fexceptions -MMD -MF ./Release/.deps/Release/obj.target/beamhashverify/crypto/beamHashIII_impl.o.d.raw -c -o Release/obj.target/beamhashverify/crypto/beamHashIII_impl.o ../crypto/beamHashIII_impl.cpp
../crypto/beamHashIII_impl.cpp: In member function ‘virtual int BeamHash_III::InitialiseState(blake2b_state&)’:
../crypto/beamHashIII_impl.cpp:203:26: warning: missing initializer for member ‘blake2b_param__::key_length’ [-Wmissing-field-initializers]
blake2b_param param = {0};
^
../crypto/beamHashIII_impl.cpp:203:26: warning: missing initializer for member ‘blake2b_param__::fanout’ [-Wmissing-field-initializers]
../crypto/beamHashIII_impl.cpp:203:26: warning: missing initializer for member ‘blake2b_param__::depth’ [-Wmissing-field-initializers]
../crypto/beamHashIII_impl.cpp:203:26: warning: missing initializer for member ‘blake2b_param__::leaf_length’ [-Wmissing-field-initializers]
../crypto/beamHashIII_impl.cpp:203:26: warning: missing initializer for member ‘blake2b_param__::node_offset’ [-Wmissing-field-initializers]
../crypto/beamHashIII_impl.cpp:203:26: warning: missing initializer for member ‘blake2b_param__::xof_length’ [-Wmissing-field-initializers]
../crypto/beamHashIII_impl.cpp:203:26: warning: missing initializer for member ‘blake2b_param__::node_depth’ [-Wmissing-field-initializers]
../crypto/beamHashIII_impl.cpp:203:26: warning: missing initializer for member ‘blake2b_param__::inner_length’ [-Wmissing-field-initializers]
../crypto/beamHashIII_impl.cpp:203:26: warning: missing initializer for member ‘blake2b_param__::reserved’ [-Wmissing-field-initializers]
../crypto/beamHashIII_impl.cpp:203:26: warning: missing initializer for member ‘blake2b_param__::salt’ [-Wmissing-field-initializers]
../crypto/beamHashIII_impl.cpp:203:26: warning: missing initializer for member ‘blake2b_param__::personal’ [-Wmissing-field-initializers]
g++ '-DNODE_GYP_MODULE_NAME=beamhashverify' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DHAVE_DECL_STRNLEN=1' '-DHAVE_BYTESWAP_H=1' '-DBUILDING_NODE_EXTENSION' -I/home/master/.cache/node-gyp/14.11.0/include/node -I/home/master/.cache/node-gyp/14.11.0/src -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/config -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/openssl/include -I/home/master/.cache/node-gyp/14.11.0/deps/uv/include -I/home/master/.cache/node-gyp/14.11.0/deps/zlib -I/home/master/.cache/node-gyp/14.11.0/deps/v8/include -I../../nan -I../. -I/usr/include -I/usr/include/boost -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++11 -Wl,--whole-archive -fPIC -fexceptions -MMD -MF ./Release/.deps/Release/obj.target/beamhashverify/beam/core/difficulty.o.d.raw -c -o Release/obj.target/beamhashverify/beam/core/difficulty.o ../beam/core/difficulty.cpp
g++ '-DNODE_GYP_MODULE_NAME=beamhashverify' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DHAVE_DECL_STRNLEN=1' '-DHAVE_BYTESWAP_H=1' '-DBUILDING_NODE_EXTENSION' -I/home/master/.cache/node-gyp/14.11.0/include/node -I/home/master/.cache/node-gyp/14.11.0/src -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/config -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/openssl/include -I/home/master/.cache/node-gyp/14.11.0/deps/uv/include -I/home/master/.cache/node-gyp/14.11.0/deps/zlib -I/home/master/.cache/node-gyp/14.11.0/deps/v8/include -I../../nan -I../. -I/usr/include -I/usr/include/boost -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++11 -Wl,--whole-archive -fPIC -fexceptions -MMD -MF ./Release/.deps/Release/obj.target/beamhashverify/beam/core/uintBig.o.d.raw -c -o Release/obj.target/beamhashverify/beam/core/uintBig.o ../beam/core/uintBig.cpp
g++ '-DNODE_GYP_MODULE_NAME=beamhashverify' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DHAVE_DECL_STRNLEN=1' '-DHAVE_BYTESWAP_H=1' '-DBUILDING_NODE_EXTENSION' -I/home/master/.cache/node-gyp/14.11.0/include/node -I/home/master/.cache/node-gyp/14.11.0/src -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/config -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/openssl/include -I/home/master/.cache/node-gyp/14.11.0/deps/uv/include -I/home/master/.cache/node-gyp/14.11.0/deps/zlib -I/home/master/.cache/node-gyp/14.11.0/deps/v8/include -I../../nan -I../. -I/usr/include -I/usr/include/boost -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++11 -Wl,--whole-archive -fPIC -fexceptions -MMD -MF ./Release/.deps/Release/obj.target/beamhashverify/beam/utility/common.o.d.raw -c -o Release/obj.target/beamhashverify/beam/utility/common.o ../beam/utility/common.cpp
g++ '-DNODE_GYP_MODULE_NAME=beamhashverify' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DHAVE_DECL_STRNLEN=1' '-DHAVE_BYTESWAP_H=1' '-DBUILDING_NODE_EXTENSION' -I/home/master/.cache/node-gyp/14.11.0/include/node -I/home/master/.cache/node-gyp/14.11.0/src -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/config -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/openssl/include -I/home/master/.cache/node-gyp/14.11.0/deps/uv/include -I/home/master/.cache/node-gyp/14.11.0/deps/zlib -I/home/master/.cache/node-gyp/14.11.0/deps/v8/include -I../../nan -I../. -I/usr/include -I/usr/include/boost -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++11 -Wl,--whole-archive -fPIC -fexceptions -MMD -MF ./Release/.deps/Release/obj.target/beamhashverify/crypto/blake/sse/blake2b.o.d.raw -c -o Release/obj.target/beamhashverify/crypto/blake/sse/blake2b.o ../crypto/blake/sse/blake2b.cpp
g++ '-DNODE_GYP_MODULE_NAME=beamhashverify' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DHAVE_DECL_STRNLEN=1' '-DHAVE_BYTESWAP_H=1' '-DBUILDING_NODE_EXTENSION' -I/home/master/.cache/node-gyp/14.11.0/include/node -I/home/master/.cache/node-gyp/14.11.0/src -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/config -I/home/master/.cache/node-gyp/14.11.0/deps/openssl/openssl/include -I/home/master/.cache/node-gyp/14.11.0/deps/uv/include -I/home/master/.cache/node-gyp/14.11.0/deps/zlib -I/home/master/.cache/node-gyp/14.11.0/deps/v8/include -I../../nan -I../. -I/usr/include -I/usr/include/boost -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++11 -Wl,--whole-archive -fPIC -fexceptions -MMD -MF ./Release/.deps/Release/obj.target/beamhashverify/beamhashverify.o.d.raw -c -o Release/obj.target/beamhashverify/beamhashverify.o ../beamhashverify.cc
In file included from ../beamhashverify.cc:7:0:
../crypto/equihashR.h:147:18: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
inline constexpr const size_t max(const size_t A, const size_t B) { return A > B ? A : B; }
^~~~~
../beamhashverify.cc: In function ‘void Verify(const v8::FunctionCallbackInfov8::Value&)’:
../beamhashverify.cc:59:62: error: no matching function for call to ‘v8::Exception::TypeError(v8::MaybeLocalv8::String)’
String::NewFromUtf8(isolate, "Wrong number of arguments")));
^
In file included from /home/master/.cache/node-gyp/14.11.0/include/node/node.h:67:0,
from ../../nan/nan.h:56,
from ../beamhashverify.cc:1:
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:7185:23: note: candidate: static v8::Localv8::Value v8::Exception::TypeError(v8::Localv8::String)
static Local TypeError(Local message);
^~~~~~~~~
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:7185:23: note: no known conversion for argument 1 from ‘v8::MaybeLocalv8::String’ to ‘v8::Localv8::String’
../beamhashverify.cc:63:44: error: no matching function for call to ‘v8::Value::ToObject()’
Local header = args[0]->ToObject();
^
In file included from /home/master/.cache/node-gyp/14.11.0/include/node/node.h:67:0,
from ../../nan/nan.h:56,
from ../beamhashverify.cc:1:
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:2822:44: note: candidate: v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^~~~~~~~
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../beamhashverify.cc:64:43: error: no matching function for call to ‘v8::Value::ToObject()’
Local nonce = args[1]->ToObject();
^
In file included from /home/master/.cache/node-gyp/14.11.0/include/node/node.h:67:0,
from ../../nan/nan.h:56,
from ../beamhashverify.cc:1:
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:2822:44: note: candidate: v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^~~~~~~~
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../beamhashverify.cc:65:46: error: no matching function for call to ‘v8::Value::ToObject()’
Local solution = args[2]->ToObject();
^
In file included from /home/master/.cache/node-gyp/14.11.0/include/node/node.h:67:0,
from ../../nan/nan.h:56,
from ../beamhashverify.cc:1:
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:2822:44: note: candidate: v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^~~~~~~~
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../beamhashverify.cc:68:32: error: no matching function for call to ‘v8::Value::Uint32Value()’
PoW = args[3]->Uint32Value();
^
In file included from /home/master/.cache/node-gyp/14.11.0/include/node/node.h:67:0,
from ../../nan/nan.h:56,
from ../beamhashverify.cc:1:
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:2866:41: note: candidate: v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:2866:41: note: candidate expects 1 argument, 0 provided
../beamhashverify.cc:73:72: error: no matching function for call to ‘v8::Exception::TypeError(v8::MaybeLocalv8::String)’
String::NewFromUtf8(isolate, "Arguments should be buffer objects.")));
^
In file included from /home/master/.cache/node-gyp/14.11.0/include/node/node.h:67:0,
from ../../nan/nan.h:56,
from ../beamhashverify.cc:1:
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:7185:23: note: candidate: static v8::Localv8::Value v8::Exception::TypeError(v8::Localv8::String)
static Local TypeError(Local message);
^~~~~~~~~
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:7185:23: note: no known conversion for argument 1 from ‘v8::MaybeLocalv8::String’ to ‘v8::Localv8::String’
../beamhashverify.cc: In function ‘void VerifyDiff(const v8::FunctionCallbackInfov8::Value&)’:
../beamhashverify.cc:100:66: error: no matching function for call to ‘v8::Exception::TypeError(v8::MaybeLocalv8::String)’
String::NewFromUtf8(isolate, "Wrong number of arguments")));
^
In file included from /home/master/.cache/node-gyp/14.11.0/include/node/node.h:67:0,
from ../../nan/nan.h:56,
from ../beamhashverify.cc:1:
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:7185:23: note: candidate: static v8::Localv8::Value v8::Exception::TypeError(v8::Localv8::String)
static Local TypeError(Local message);
^~~~~~~~~
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:7185:23: note: no known conversion for argument 1 from ‘v8::MaybeLocalv8::String’ to ‘v8::Localv8::String’
../beamhashverify.cc:105:46: error: no matching function for call to ‘v8::Value::ToObject()’
Local solution = args[0]->ToObject();
^
In file included from /home/master/.cache/node-gyp/14.11.0/include/node/node.h:67:0,
from ../../nan/nan.h:56,
from ../beamhashverify.cc:1:
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:2822:44: note: candidate: v8::MaybeLocalv8::Object v8::Value::ToObject(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^~~~~~~~
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:2822:44: note: candidate expects 1 argument, 0 provided
../beamhashverify.cc:109:75: error: no matching function for call to ‘v8::Exception::TypeError(v8::MaybeLocalv8::String)’
String::NewFromUtf8(isolate, "Argument should be buffer objects.")));
^
In file included from /home/master/.cache/node-gyp/14.11.0/include/node/node.h:67:0,
from ../../nan/nan.h:56,
from ../beamhashverify.cc:1:
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:7185:23: note: candidate: static v8::Localv8::Value v8::Exception::TypeError(v8::Localv8::String)
static Local TypeError(Local message);
^~~~~~~~~
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:7185:23: note: no known conversion for argument 1 from ‘v8::MaybeLocalv8::String’ to ‘v8::Localv8::String’
../beamhashverify.cc:112:31: error: no matching function for call to ‘v8::Value::Uint32Value()’
diff = args[1]->Uint32Value();
^
In file included from /home/master/.cache/node-gyp/14.11.0/include/node/node.h:67:0,
from ../../nan/nan.h:56,
from ../beamhashverify.cc:1:
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:2866:41: note: candidate: v8::Maybe v8::Value::Uint32Value(v8::Localv8::Context) const
V8_WARN_UNUSED_RESULT Maybe<uint32_t> Uint32Value(
^~~~~~~~~~~
/home/master/.cache/node-gyp/14.11.0/include/node/v8.h:2866:41: note: candidate expects 1 argument, 0 provided
../beamhashverify.cc: At global scope:
../beamhashverify.cc:124:11: error: variable or field ‘Init’ declared void
void Init(Handle exports)
^~~~~~
../beamhashverify.cc:124:11: error: ‘Handle’ was not declared in this scope
../beamhashverify.cc:124:11: note: suggested alternative: ‘rand_r’
void Init(Handle exports)
^~~~~~
rand_r
../beamhashverify.cc:124:24: error: expected primary-expression before ‘>’ token
void Init(Handle exports)
^
../beamhashverify.cc:124:26: error: ‘exports’ was not declared in this scope
void Init(Handle exports)
^~~~~~~
In file included from ../../nan/nan.h:56:0,
from ../beamhashverify.cc:1:
../beamhashverify.cc:130:29: error: ‘Init’ was not declared in this scope
NODE_MODULE(beamhashverify, Init)
^
/home/master/.cache/node-gyp/14.11.0/include/node/node.h:746:36: note: in definition of macro ‘NODE_MODULE_X’
(node::addon_register_func) (regfunc),
^~~~~~~
../beamhashverify.cc:130:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(beamhashverify, Init)
^~~~~~~~~~~
../beamhashverify.cc:130:29: note: suggested alternative:
NODE_MODULE(beamhashverify, Init)
^
/home/master/.cache/node-gyp/14.11.0/include/node/node.h:746:36: note: in definition of macro ‘NODE_MODULE_X’
(node::addon_register_func) (regfunc),
^~~~~~~
../beamhashverify.cc:130:1: note: in expansion of macro ‘NODE_MODULE’
NODE_MODULE(beamhashverify, Init)
^~~~~~~~~~~
In file included from ../../nan/nan.h:56:0,
from ../beamhashverify.cc:1:
/home/master/.cache/node-gyp/14.11.0/include/node/node.h:234:22: note: ‘node::Init’
NODE_EXTERN void Init(int* argc,
^
/home/master/.cache/node-gyp/14.11.0/include/node/node.h:108:42: note: in definition of macro ‘NODE_DEPRECATED’
attribute((deprecated(message))) declarator
^~~~~~~~~~
beamhashverify.target.mk:141: recipe for target 'Release/obj.target/beamhashverify/beamhashverify.o' failed
make: *** [Release/obj.target/beamhashverify/beamhashverify.o] Error 1
make: Leaving directory '/home/master/beam-mine/node_modules/beamhashverify/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Linux 4.15.0-117-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/master/beam-mine/node_modules/beamhashverify
gyp ERR! node -v v14.11.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: env V=1 node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

Error genereating beam-stratum-crt.pem

Hello!
When I type:
openssl req -x509 -newkey rsa:4096 -keyout beam-stratum-key.pem -out beam-stratum-crt.pem -days 3650 -nodes -subj '/CN=localhost’
I get the following error:
Generating a RSA private key
............................................................................................................++++
.......................................++++
writing new private key to 'beam-stratum-key.pem'

problems making Certificate Request
140633230509376:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:../crypto/asn1/a_mbstr.c:107:maxsize=64
any suggestion on how to solve it? Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.