Coder Social home page Coder Social logo

forknote / forknote-pool Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fancoder/cryptonote-universal-pool

122.0 27.0 185.0 706 KB

Mining pool for Bytecoin/Forknote based coins such as Bytecoin and Dashcoin.

Home Page: https://github.com/forknote/forknote-pool

License: GNU General Public License v2.0

JavaScript 41.56% HTML 42.71% CSS 15.74%

forknote-pool's Introduction

cryptonote-forknote-pool

NOTICE: If you have problems with orphan blocks, read this first: #48

High performance Node.js (with native C addons) mining pool for Cryptonote based coins, created with the Forknote software such as Bytecoin, Dashcoin, etc..

Comes with lightweight example front-end script which uses the pool's AJAX API.

Table of Contents

Basic features

  • TCP (stratum-like) protocol for server-push based jobs
    • Compared to old HTTP protocol, this has a higher hash rate, lower network/CPU server load, lower orphan block percent, and less error prone
  • IP banning to prevent low-diff share attacks
  • Socket flooding detection
  • Payment processing
    • Splintered transactions to deal with max transaction size
    • Minimum payment threshold before balance will be paid out
    • Minimum denomination for truncating payment amount precision to reduce size/complexity of block transactions
  • Detailed logging
  • Ability to configure multiple ports - each with their own difficulty
  • Variable difficulty / share limiter
  • Share trust algorithm to reduce share validation hashing CPU load
  • Clustering for vertical scaling
  • Modular components for horizontal scaling (pool server, database, stats/API, payment processing, front-end)
  • Live stats API (using AJAX long polling with CORS)
    • Currency network/block difficulty
    • Current block height
    • Network hashrate
    • Pool hashrate
    • Each miners' individual stats (hashrate, shares submitted, pending balance, total paid, etc)
    • Blocks found (pending, confirmed, and orphaned)
  • An easily extendable, responsive, light-weight front-end using API to display data

Extra features

  • Admin panel
    • Aggregated pool statistics
    • Coin daemon & wallet RPC services stability monitoring
    • Log files data access
    • Users list with detailed statistics
  • Historic charts of pool's hashrate and miners count, coin difficulty, rates and coin profitability
  • Historic charts of users's hashrate and payments
  • Miner login(wallet address) validation
  • Five configurable CSS themes
  • Universal blocks and transactions explorer based on chainradar.com
  • FantomCoin & MonetaVerde support
  • Set fixed difficulty on miner client by passing "address" param with ".[difficulty]" postfix
  • Prevent "transaction is too big" error with "payments.maxTransactionAmount" option

Community / Support

Pools Using This Software

Usage

Requirements

  • Coin daemon(s) (find the coin's repo and build latest version from source)
  • simplewallet (Bytecoin/Forknote v1.1.11). Do NOT use Forknote 2.0.0, since it's in alpha
* [Node.js](http://nodejs.org/) v0.10+ ([follow these installation instructions](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager))
* [Redis](http://redis.io/) key-value store v2.6+ ([follow these instructions](http://redis.io/topics/quickstart))
* libssl required for the node-multi-hashing module
  * For Ubuntu: `sudo apt-get install libssl-dev`


##### Seriously
Those are legitimate requirements. If you use old versions of Node.js or Redis that may come with your system package manager then you will have problems. Follow the linked instructions to get the last stable versions.


[**Redis security warning**](http://redis.io/topics/security): be sure firewall access to redis - an easy way is to
include `bind 127.0.0.1` in your `redis.conf` file. Also it's a good idea to learn about and understand software that
you are using - a good place to start with redis is [data persistence](http://redis.io/topics/persistence).

##### Easy install on Ubuntu 14 LTS
Installing pool on different Linux distributives is different because it depends on system default components and versions. For now the easiest way to install pool is to use Ubuntu 14 LTS. Thus, all you had to do in order to prepare Ubunty 14 for pool installation is to run:

```bash
sudo apt-get install git build-essential redis-server libboost1.55-all-dev nodejs-dev nodejs-legacy npm cmake libssl-dev

1) Downloading & Installing

Clone the repository and run npm update for all the dependencies to be installed:

git clone https://github.com/forknote/cryptonote-universal-pool.git pool
cd pool
npm update

2) Configuration

Explanation for each field:

/* Used for storage in redis so multiple coins can share the same redis instance. */
"coin": "dashcoin",

/* Used for front-end display */
"symbol": "DSH",

/* Minimum units in a single coin, see COIN constant in DAEMON_CODE/src/cryptonote_config.h */
"coinUnits": 1000000000000,

/* Coin network time to mine one block, see DIFFICULTY_TARGET constant in DAEMON_CODE/src/cryptonote_config.h */
"coinDifficultyTarget": 120,

"logging": {

    "files": {

        /* Specifies the level of log output verbosity. This level and anything
           more severe will be logged. Options are: info, warn, or error. */
        "level": "info",

        /* Directory where to write log files. */
        "directory": "logs",

        /* How often (in seconds) to append/flush data to the log files. */
        "flushInterval": 5
    },

    "console": {
        "level": "info",
        /* Gives console output useful colors. If you direct that output to a log file
           then disable this feature to avoid nasty characters in the file. */
        "colors": true
    }
},

/* Modular Pool Server */
"poolServer": {
    "enabled": true,

    /* Set to "auto" by default which will spawn one process/fork/worker for each CPU
       core in your system. Each of these workers will run a separate instance of your
       pool(s), and the kernel will load balance miners using these forks. Optionally,
       the 'forks' field can be a number for how many forks will be spawned. */
    "clusterForks": "auto",

    /* Address where block rewards go, and miner payments come from. */
    "poolAddress": "D6WLtrV1SBWV8HWQzQv8uuYuGy3uwZ8ah5iT5HovSqhTKMauquoTsKP8RBJzVqVesX87poYWQgkGWB4NWHJ6Ravv93v4BaE"

    /* Poll RPC daemons for new blocks every this many milliseconds. */
    "blockRefreshInterval": 1000,

    /* How many seconds until we consider a miner disconnected. */
    "minerTimeout": 900,

    "ports": [
        {
            "port": 3333, //Port for mining apps to connect to
            "difficulty": 100, //Initial difficulty miners are set to
            "desc": "Low end hardware" //Description of port
        },
        {
            "port": 5555,
            "difficulty": 2000,
            "desc": "Mid range hardware"
        },
        {
            "port": 7777,
            "difficulty": 10000,
            "desc": "High end hardware"
        }
    ],

    /* Variable difficulty is a feature that will automatically adjust difficulty for
       individual miners based on their hashrate in order to lower networking and CPU
       overhead. */
    "varDiff": {
        "minDiff": 2, //Minimum difficulty
        "maxDiff": 100000,
        "targetTime": 100, //Try to get 1 share per this many seconds
        "retargetTime": 30, //Check to see if we should retarget every this many seconds
        "variancePercent": 30, //Allow time to very this % from target without retargeting
        "maxJump": 100 //Limit diff percent increase/decrease in a single retargetting
    },

    /* Set difficulty on miner client side by passing <address> param with .<difficulty> postfix
       minerd -u D3z2DDWygoZU4NniCNa4oMjjKi45dC2KHUWUyD1RZ1pfgnRgcHdfLVQgh5gmRv4jwEjCX5LoLERAf5PbjLS43Rkd8vFUM1m.5000 */
    "fixedDiff": {
        "enabled": true,
        "separator": ".", // character separator between <address> and <difficulty>
    },

    /* Feature to trust share difficulties from miners which can
       significantly reduce CPU load. */
    "shareTrust": {
        "enabled": true,
        "min": 10, //Minimum percent probability for share hashing
        "stepDown": 3, //Increase trust probability % this much with each valid share
        "threshold": 10, //Amount of valid shares required before trusting begins
        "penalty": 30 //Upon breaking trust require this many valid share before trusting
    },

    /* If under low-diff share attack we can ban their IP to reduce system/network load. */
    "banning": {
        "enabled": true,
        "time": 600, //How many seconds to ban worker for
        "invalidPercent": 25, //What percent of invalid shares triggers ban
        "checkThreshold": 30 //Perform check when this many shares have been submitted
    },
    /* Slush Mining is a reward calculation technique which disincentivizes pool hopping and rewards users to mine with the pool steadily: Values of each share decrease in time – younger shares are valued higher than older shares.
    More about it here: https://mining.bitcoin.cz/help/#!/manual/rewards */
    /* There is some bugs with enabled slushMining. Use with '"enabled": false' only. */

    "slushMining": {
        "enabled": false, // 'true' enables slush mining. Recommended for pools catering to professional miners
        "weight": 120, //defines how fast value assigned to a share declines in time
        "lastBlockCheckRate": 1 //How often the pool checks for the timestamp of the last block. Lower numbers increase load for the Redis db, but make the share value more precise.
    }
},

/* Module that sends payments to miners according to their submitted shares. */
"payments": {
    "enabled": true,
    "interval": 600, //how often to run in seconds
    "maxAddresses": 50, //split up payments if sending to more than this many addresses
    "mixin": 3, //number of transactions yours is indistinguishable from
    "transferFee": 5000000000, //fee to pay for each transaction
    "minPayment": 100000000000, //miner balance required before sending payment
    "maxTransactionAmount": 0, //split transactions by this amount(to prevent "too big transaction" error)
    "denomination": 100000000000 //truncate to this precision and store remainder
},

/* Module that monitors the submitted block maturities and manages rounds. Confirmed
   blocks mark the end of a round where workers' balances are increased in proportion
   to their shares. */
"blockUnlocker": {
    "enabled": true,
    "interval": 30, //how often to check block statuses in seconds

    /* Block depth required for a block to unlocked/mature. Found in daemon source as
       the variable CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW */
    "depth": 60,
    "poolFee": 1.8, //1.8% pool fee (2% total fee total including donations)
    "devDonation": 0.1, //0.1% donation to send to pool dev - only works with Monero
    "coreDevDonation": 0.1 //0.1% donation to send to core devs - works with Bytecoin, Monero, Dashcoin, QuarazCoin, Fantoncoin, AEON and OneEvilCoin
},

/* AJAX API used for front-end website. */
"api": {
    "enabled": true,
    "hashrateWindow": 600, //how many second worth of shares used to estimate hash rate
    "updateInterval": 3, //gather stats and broadcast every this many seconds
    "port": 8117,
    "blocks": 30, //amount of blocks to send at a time
    "payments": 30, //amount of payments to send at a time
    "password": "test" //password required for admin stats
},

/* Coin daemon connection details. */
"daemon": {
    "host": "127.0.0.1",
    "port": 29081,
    "legacy": false  // Use 1 for forknote v2.1.2 or older
},

/* Wallet daemon connection details. */
"wallet": {
    "host": "127.0.0.1",
    "port": 29082
},

/* Redis connection into. */
"redis": {
    "host": "127.0.0.1",
    "port": 6379
}

/* Monitoring RPC services. Statistics will be displayed in Admin panel */
"monitoring": {
    "daemon": {
        "checkInterval": 60, //interval of sending rpcMethod request
        "rpcMethod": "getblockcount", //RPC method name
        "legacy": false  // Use true if you use legacy version (before Forknote v2.1.2.1). For details: https://github.com/forknote/forknote-pool/issues/48
    },
    "wallet": {
        "checkInterval": 60,
        "rpcMethod": "get_address_count"
    }

/* Collect pool statistics to display in frontend charts  */
"charts": {
    "pool": {
        "hashrate": {
            "enabled": true, //enable data collection and chart displaying in frontend
            "updateInterval": 60, //how often to get current value
            "stepInterval": 1800, //chart step interval calculated as average of all updated values
            "maximumPeriod": 86400 //chart maximum periods (chart points number = maximumPeriod / stepInterval = 48)
        },
        "workers": {
            "enabled": true,
            "updateInterval": 60,
            "stepInterval": 1800, //chart step interval calculated as maximum of all updated values
            "maximumPeriod": 86400
        },
        "difficulty": {
            "enabled": true,
            "updateInterval": 1800,
            "stepInterval": 10800,
            "maximumPeriod": 604800
        },
        "price": { //USD price of one currency coin received from cryptonator.com/api
            "enabled": true,
            "updateInterval": 1800,
            "stepInterval": 10800,
            "maximumPeriod": 604800
        },
        "profit": { //Reward * Rate / Difficulty
            "enabled": true,
            "updateInterval": 1800,
            "stepInterval": 10800,
            "maximumPeriod": 604800
        }
    },
    "user": { //chart data displayed in user stats block
        "hashrate": {
            "enabled": true,
            "updateInterval": 180,
            "stepInterval": 1800,
            "maximumPeriod": 86400
        },
        "payments": { //payment chart uses all user payments data stored in DB
            "enabled": true
        }
    }

3) [Optional] Configure cryptonote-easy-miner for your pool

Your miners that are Windows users can use cryptonote-easy-miner which will automatically generate their wallet address and stratup multiple threads of simpleminer. You can download it and edit the config.ini file to point to your own pool. Inside the easyminer folder, edit config.init to point to your pool details

pool_host=example.com
pool_port=5555

Rezip and upload to your server or a file host. Then change the easyminerDownload link in your config.json file to point to your zip file.

4) Start the pool

node init.js

The file config.json is used by default but a file can be specified using the -config=file command argument, for example:

node init.js -config=config_backup.json

This software contains four distinct modules:

  • pool - Which opens ports for miners to connect and processes shares
  • api - Used by the website to display network, pool and miners' data
  • unlocker - Processes block candidates and increases miners' balances when blocks are unlocked
  • payments - Sends out payments to miners according to their balances stored in redis

By default, running the init.js script will start up all four modules. You can optionally have the script start only start a specific module by using the -module=name command argument, for example:

node init.js -module=api

Example screenshot of running the pool in single module mode with tmux.

5) Host the front-end

Simply host the contents of the website_example directory on file server capable of serving simple static files.

Edit the variables in the website_example/config.js file to use your pool's specific configuration. Variable explanations:

/* Must point to the API setup in your config.json file. */
var api = "http://poolhost:8117";

/* Pool server host to instruct your miners to point to.  */
var poolHost = "poolhost.com";

/* IRC Server and room used for embedded KiwiIRC chat. */
var irc = "irc.freenode.net/#forknote";

/* Contact email address. */
var email = "[email protected]";

/* Market stat display params from https://www.cryptonator.com/widget */
var cryptonatorWidget = ["DSH-BTC", "DSH-USD", "DSH-EUR"];

/* Download link to cryptonote-easy-miner for Windows users. */
var easyminerDownload = "https://github.com/zone117x/cryptonote-easy-miner/releases/";

/* Used for front-end block links. */
var blockchainExplorer = "http://chainradar.com/{symbol}/block/{id}";

/* Used by front-end transaction links. */
var transactionExplorer = "http://chainradar.com/{symbol}/transaction/{id}";

/* Any custom CSS theme for pool frontend */
var themeCss = "themes/default-theme.css";

6) Customize your website

The following files are included so that you can customize your pool website without having to make significant changes to index.html or other front-end files thus reducing the difficulty of merging updates with your own changes:

  • custom.css for creating your own pool style
  • custom.js for changing the functionality of your pool website

Then simply serve the files via nginx, Apache, Google Drive, or anything that can host static content.

Upgrading

When updating to the latest code its important to not only git pull the latest from this repo, but to also update the Node.js modules, and any config files that may have been changed.

  • Inside your pool directory (where the init.js script is) do git pull to get the latest code.
  • Remove the dependencies by deleting the node_modules directory with rm -r node_modules.
  • Run npm update to force updating/reinstalling of the dependencies.
  • Compare your config.json to the latest example ones in this repo or the ones in the setup instructions where each config field is explained. You may need to modify or add any new changes.

Setting up Testnet

No cryptonote based coins have a testnet mode (yet) but you can effectively create a testnet with the following steps:

  • Open /src/p2p/net_node.inl and remove lines with ADD_HARDCODED_SEED_NODE to prevent it from connecting to mainnet (Monero example: http://git.io/0a12_Q)
  • Build the coin from source
  • You now need to run two instance of the daemon and connect them to each other (without a connection to another instance the daemon will not accept RPC requests)
    • Run first instance with ./forknoted --p2p-bind-port 28080 --allow-local-ip
    • Run second instance with ./forknoted --p2p-bind-port 5011 --rpc-bind-port 5010 --add-peer 0.0.0.0:28080 --allow-local-ip
  • You should now have a local testnet setup. The ports can be changes as long as the second instance is pointed to the first instance, obviously

Credit to surfer43 for these instructions

JSON-RPC Commands from CLI

Documentation for JSON-RPC commands can be found here:

Curl can be used to use the JSON-RPC commands from command-line. Here is an example of calling getblockheaderbyheight for block 100:

curl 127.0.0.1:18081/json_rpc -d '{"method":"getblockheaderbyheight","params":{"height":100}}'

Monitoring Your Pool

  • To inspect and make changes to redis I suggest using redis-commander
  • To monitor server load for CPU, Network, IO, etc - I suggest using New Relic
  • To keep your pool node script running in background, logging to file, and automatically restarting if it crashes - I suggest using forever

Configuring Blockchain Explorer

You need the latest stable version of Forknote for the blockchain explorer - forknote releases

  • Add the following code to the coin's config file:
rpc-bind-ip=0.0.0.0
enable-blockexplorer=1
enable-cors=*
  • Launch forknoted with the corresponding config file
  • Change the following line in the pool's frontend config.json:
var api_blockexplorer = "http://daemonhost.com:1118";

Credits

  • LucasJones - Co-dev on this project; did tons of debugging for binary structures and fixing them. Pool couldn't have been made without him.
  • surfer43 - Did lots of testing during development to help figure out bugs and get them fixed
  • wallet42 - Funded development of payment denominating and min threshold feature
  • Wolf0 - Helped try to deobfuscate some of the daemon code for getting a bug fixed
  • Tacotime - helping with figuring out certain problems and lead the bounty for this project's creation
  • fancoder - See his repo for the changes

License

Released under the GNU General Public License v2

http://www.gnu.org/licenses/gpl-2.0.html

forknote-pool's People

Contributors

avtc avatar barbushin avatar dayas avatar discotim avatar fancoder avatar kittycattech avatar lucasjones avatar makjak avatar pbt39ppc avatar pmitchev avatar sammy007 avatar trendscharts avatar yaymining avatar zone117x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

forknote-pool's Issues

compile error at cryptonote-util

npm update

> [email protected] install /root/trtl/pool/node_modules/cryptonote-util
> node-gyp rebuild

make: Entering directory '/root/trtl/pool/node_modules/cryptonote-util/build'
  CXX(target) Release/obj.target/cryptonote/src/main.o
../src/main.cc: In function ‘v8::Handle<v8::Value> except(const char*)’:
../src/main.cc:21:44: error: ‘New’ is not a member of ‘v8::String’
     return ThrowException(Exception::Error(String::New(msg)));
                                            ^
../src/main.cc:21:61: error: ‘ThrowException’ was not declared in this scope
     return ThrowException(Exception::Error(String::New(msg)));
                                                             ^
../src/main.cc: At global scope:
../src/main.cc:80:34: error: ‘Arguments’ does not name a type
 Handle<Value> convert_blob(const Arguments& args) {
                                  ^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
                 from ../src/main.cc:2:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handle<v8::Value> convert_blob(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/main.cc:81:17: error: within this context
     HandleScope scope;
                 ^
../src/main.cc:83:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
     if (args.Length() < 1)
              ^
../src/main.cc:86:34: error: invalid types ‘const int[int]’ for array subscript
     Local<Object> target = args[0]->ToObject();
                                  ^
../src/main.cc:111:11: error: expected primary-expression before ‘*’ token
     Buffer* buff = Buffer::New(output.data(), output.size());
           ^
../src/main.cc:111:13: error: ‘buff’ was not declared in this scope
     Buffer* buff = Buffer::New(output.data(), output.size());
             ^
../src/main.cc:111:60: error: no matching function for call to ‘New(const char*, std::__cxx11::basic_string<char>::size_type)’
     Buffer* buff = Buffer::New(output.data(), output.size());
                                                            ^
In file included from ../src/main.cc:3:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, size_t)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                        ^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note:   no known conversion for argument 1 from ‘const char*’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note:   no known conversion for argument 1 from ‘const char*’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note:   candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note:   candidate expects 3 arguments, 2 provided
../src/main.cc:112:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
     return scope.Close(buff->handle_);
                  ^
../src/main.cc: At global scope:
../src/main.cc:115:34: error: ‘Arguments’ does not name a type
 Handle<Value> get_block_id(const Arguments& args) {
                                  ^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
                 from ../src/main.cc:2:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handle<v8::Value> get_block_id(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/main.cc:116:17: error: within this context
     HandleScope scope;
                 ^
../src/main.cc:118:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
     if (args.Length() < 1)
              ^
../src/main.cc:121:34: error: invalid types ‘const int[int]’ for array subscript
     Local<Object> target = args[0]->ToObject();
                                  ^
../src/main.cc:137:11: error: expected primary-expression before ‘*’ token
     Buffer* buff = Buffer::New(reinterpret_cast<char*>(&block_id), sizeof(block_id));
           ^
../src/main.cc:137:13: error: ‘buff’ was not declared in this scope
     Buffer* buff = Buffer::New(reinterpret_cast<char*>(&block_id), sizeof(block_id));
             ^
../src/main.cc:137:84: error: no matching function for call to ‘New(char*, long unsigned int)’
     Buffer* buff = Buffer::New(reinterpret_cast<char*>(&block_id), sizeof(block_id));
                                                                                    ^
In file included from ../src/main.cc:3:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, size_t)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                        ^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note:   candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note:   candidate expects 3 arguments, 2 provided
../src/main.cc:138:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
     return scope.Close(buff->handle_);
                  ^
../src/main.cc: At global scope:
../src/main.cc:141:42: error: ‘Arguments’ does not name a type
 Handle<Value> construct_block_blob(const Arguments& args) {
                                          ^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
                 from ../src/main.cc:2:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handle<v8::Value> construct_block_blob(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/main.cc:142:17: error: within this context
     HandleScope scope;
                 ^
../src/main.cc:144:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
     if (args.Length() < 2)
              ^
../src/main.cc:147:46: error: invalid types ‘const int[int]’ for array subscript
     Local<Object> block_template_buf = args[0]->ToObject();
                                              ^
../src/main.cc:148:37: error: invalid types ‘const int[int]’ for array subscript
     Local<Object> nonce_buf = args[1]->ToObject();
                                     ^
../src/main.cc:188:11: error: expected primary-expression before ‘*’ token
     Buffer* buff = Buffer::New(output.data(), output.size());
           ^
../src/main.cc:188:13: error: ‘buff’ was not declared in this scope
     Buffer* buff = Buffer::New(output.data(), output.size());
             ^
../src/main.cc:188:60: error: no matching function for call to ‘New(const char*, std::__cxx11::basic_string<char>::size_type)’
     Buffer* buff = Buffer::New(output.data(), output.size());
                                                            ^
In file included from ../src/main.cc:3:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, size_t)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                        ^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note:   no known conversion for argument 1 from ‘const char*’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note:   no known conversion for argument 1 from ‘const char*’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note:   candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note:   candidate expects 3 arguments, 2 provided
../src/main.cc:189:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
     return scope.Close(buff->handle_);
                  ^
../src/main.cc: At global scope:
../src/main.cc:192:37: error: ‘Arguments’ does not name a type
 Handle<Value> convert_blob_bb(const Arguments& args) {
                                     ^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
                 from ../src/main.cc:2:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handle<v8::Value> convert_blob_bb(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/main.cc:193:17: error: within this context
     HandleScope scope;
                 ^
../src/main.cc:195:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
     if (args.Length() < 1)
              ^
../src/main.cc:198:34: error: invalid types ‘const int[int]’ for array subscript
     Local<Object> target = args[0]->ToObject();
                                  ^
../src/main.cc:213:11: error: expected primary-expression before ‘*’ token
     Buffer* buff = Buffer::New(output.data(), output.size());
           ^
../src/main.cc:213:13: error: ‘buff’ was not declared in this scope
     Buffer* buff = Buffer::New(output.data(), output.size());
             ^
../src/main.cc:213:60: error: no matching function for call to ‘New(const char*, std::__cxx11::basic_string<char>::size_type)’
     Buffer* buff = Buffer::New(output.data(), output.size());
                                                            ^
In file included from ../src/main.cc:3:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, size_t)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                        ^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note:   no known conversion for argument 1 from ‘const char*’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note:   no known conversion for argument 1 from ‘const char*’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note:   candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note:   candidate expects 3 arguments, 2 provided
../src/main.cc:214:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
     return scope.Close(buff->handle_);
                  ^
../src/main.cc: At global scope:
../src/main.cc:217:36: error: ‘Arguments’ does not name a type
 Handle<Value> address_decode(const Arguments& args) {
                                    ^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
                 from ../src/main.cc:2:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handle<v8::Value> address_decode(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/main.cc:218:17: error: within this context
     HandleScope scope;
                 ^
../src/main.cc:220:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
     if (args.Length() < 1)
              ^
../src/main.cc:223:34: error: invalid types ‘const int[int]’ for array subscript
     Local<Object> target = args[0]->ToObject();
                                  ^
../src/main.cc:233:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
         return scope.Close(Undefined());
                      ^
../src/main.cc:233:38: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
         return scope.Close(Undefined());
                                      ^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
                 from ../src/main.cc:2:
/root/.node-gyp/8.9.4/include/node/v8.h:312:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/main.cc:237:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
         return scope.Close(Undefined());
                      ^
../src/main.cc:237:38: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
         return scope.Close(Undefined());
                                      ^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
                 from ../src/main.cc:2:
/root/.node-gyp/8.9.4/include/node/v8.h:312:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/main.cc:240:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
         return scope.Close(Undefined());
                      ^
../src/main.cc:240:38: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
         return scope.Close(Undefined());
                                      ^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
                 from ../src/main.cc:2:
/root/.node-gyp/8.9.4/include/node/v8.h:312:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/main.cc:242:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
     return scope.Close(Integer::New(static_cast<uint32_t>(prefix)));
                  ^
../src/main.cc:242:66: error: no matching function for call to ‘v8::Integer::New(uint32_t)’
     return scope.Close(Integer::New(static_cast<uint32_t>(prefix)));
                                                                  ^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
                 from ../src/main.cc:2:
/root/.node-gyp/8.9.4/include/node/v8.h:2914:25: note: candidate: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
   static Local<Integer> New(Isolate* isolate, int32_t value);
                         ^
/root/.node-gyp/8.9.4/include/node/v8.h:2914:25: note:   candidate expects 2 arguments, 1 provided
../src/main.cc: In function ‘void init(v8::Handle<v8::Object>)’:
../src/main.cc:246:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
     exports->Set(String::NewSymbol("construct_block_blob"), FunctionTemplate::New(construct_block_blob)->GetFunction());
                  ^
../src/main.cc:246:103: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
     exports->Set(String::NewSymbol("construct_block_blob"), FunctionTemplate::New(construct_block_blob)->GetFunction());
                                                                                                       ^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
                 from ../src/main.cc:2:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
   static Local<FunctionTemplate> New(
                                  ^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’
../src/main.cc:247:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
     exports->Set(String::NewSymbol("get_block_id"), FunctionTemplate::New(get_block_id)->GetFunction());
                  ^
../src/main.cc:247:87: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
     exports->Set(String::NewSymbol("get_block_id"), FunctionTemplate::New(get_block_id)->GetFunction());
                                                                                       ^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
                 from ../src/main.cc:2:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
   static Local<FunctionTemplate> New(
                                  ^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’
../src/main.cc:248:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
     exports->Set(String::NewSymbol("convert_blob"), FunctionTemplate::New(convert_blob)->GetFunction());
                  ^
../src/main.cc:248:87: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
     exports->Set(String::NewSymbol("convert_blob"), FunctionTemplate::New(convert_blob)->GetFunction());
                                                                                       ^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
                 from ../src/main.cc:2:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
   static Local<FunctionTemplate> New(
                                  ^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’
../src/main.cc:249:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
     exports->Set(String::NewSymbol("convert_blob_bb"), FunctionTemplate::New(convert_blob_bb)->GetFunction());
                  ^
../src/main.cc:249:93: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
     exports->Set(String::NewSymbol("convert_blob_bb"), FunctionTemplate::New(convert_blob_bb)->GetFunction());
                                                                                             ^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
                 from ../src/main.cc:2:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
   static Local<FunctionTemplate> New(
                                  ^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’
../src/main.cc:250:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
     exports->Set(String::NewSymbol("address_decode"), FunctionTemplate::New(address_decode)->GetFunction());
                  ^
../src/main.cc:250:91: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
     exports->Set(String::NewSymbol("address_decode"), FunctionTemplate::New(address_decode)->GetFunction());
                                                                                           ^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
                 from ../src/main.cc:2:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
   static Local<FunctionTemplate> New(
                                  ^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’
cryptonote.target.mk:107: recipe for target 'Release/obj.target/cryptonote/src/main.o' failed
make: *** [Release/obj.target/cryptonote/src/main.o] Error 1
make: Leaving directory '/root/trtl/pool/node_modules/cryptonote-util/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.4.0-87-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /root/trtl/pool/node_modules/cryptonote-util
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `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!     /root/.npm/_logs/2018-02-05T19_09_09_742Z-debug.log

making payments as paid manually?!

Hello.
I'm running one pool where is only me and one of my friends mining and i haven't setup automatic payments not because i won't but i wasn't able to set it up wasn't working.

so as there is only me and my friend i've send payments manually to him and i reset redis stats once per week.

But example when i want to reset the pool i will need to leave just 1 miner till pending blocks gets mined but as of now we're getting alot of blocks
image
and to reset the pool it will take me 2-3 days 😕 so i will like to know if there's anyway to make payments as paid manually?!

Thanks.

Error: Failed to parse block

Help to understand the problem, when connecting to the pool, the miner issues an error

Error: Failed to parse block
at Object.BlockTemplate.nextBlob (/home/USER/fork/lib/pool.js:128:23)
at Object.Miner.getJob (/home/USER/fork/lib/pool.js:302:41)
at handleMinerMethod (/home/USER/fork/lib/pool.js:531:28)
at handleMessage (/home/USER/fork/lib/pool.js:660:13)
at Socket.socket.on.on.on.pushMessage (/home/USER/fork/lib/pool.js:714:25)
at Socket.emit (events.js:95:17)
at Socket. (stream_readable.js:765:14)
at Socket.emit (events.js:92:17)
at emitReadable (_stream_readable.js:427:10)
at emitReadable (_stream_readable.js:423:5)

2017-06-07 07:28:44 [master] Pool fork 1 died, spawning replacement worker...

Cryptonote Util Package Error

[email protected] install /home/elsasha/pool/node_modules/bignum
node-pre-gyp install --fallback-to-build

[bignum] Success: "/home/elsasha/pool/node_modules/bignum/binding/bignum.node" is installed via remote

[email protected] install /home/elsasha/pool/node_modules/cryptonote-util
node-gyp rebuild

make: Entering directory '/home/elsasha/pool/node_modules/cryptonote-util/build'
CXX(target) Release/obj.target/cryptonote/src/main.o
../src/main.cc: In function ‘v8::Handlev8::Value except(const char*)’:
../src/main.cc:21:44: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::Error(String::New(msg)));
^
../src/main.cc:21:61: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::Error(String::New(msg)));
^
../src/main.cc: At global scope:
../src/main.cc:80:34: error: ‘Arguments’ does not name a type
Handle convert_blob(const Arguments& args) {
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h: In function ‘v8::Handlev8::Value convert_blob(const int&)’:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/main.cc:81:17: error: within this context
HandleScope scope;
^
../src/main.cc:83:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../src/main.cc:86:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../src/main.cc:111:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output.data(), output.size());
^
../src/main.cc:111:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output.data(), output.size());
^
../src/main.cc:111:60: error: no matching function for call to ‘New(const char*, std::cxx11::basic_string::size_type)’
Buffer* buff = Buffer::New(output.data(), output.size());
^
In file included from ../src/main.cc:3:0:
/usr/include/nodejs/src/node_buffer.h:28:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/usr/include/nodejs/src/node_buffer.h:28:40: note: no known conversion for argument 1 from ‘const char*’ to ‘v8::Isolate*’
/usr/include/nodejs/src/node_buffer.h:31:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/usr/include/nodejs/src/node_buffer.h:31:40: note: no known conversion for argument 1 from ‘const char*’ to ‘v8::Isolate*’
/usr/include/nodejs/src/node_buffer.h:36:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/usr/include/nodejs/src/node_buffer.h:36:40: note: candidate expects 5 arguments, 2 provided
/usr/include/nodejs/src/node_buffer.h:43:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/usr/include/nodejs/src/node_buffer.h:43:40: note: candidate expects 3 arguments, 2 provided
../src/main.cc:112:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle
);
^
../src/main.cc: At global scope:
../src/main.cc:115:34: error: ‘Arguments’ does not name a type
Handle get_block_id(const Arguments& args) {
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h: In function ‘v8::Handlev8::Value get_block_id(const int&)’:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/main.cc:116:17: error: within this context
HandleScope scope;
^
../src/main.cc:118:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../src/main.cc:121:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../src/main.cc:137:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(reinterpret_cast<char*>(&block_id), sizeof(block
^
../src/main.cc:137:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(reinterpret_cast<char*>(&block_id), sizeof(block
^
../src/main.cc:137:84: error: no matching function for call to ‘New(char*, long unsigned int)’
ffer* buff = Buffer::New(reinterpret_cast<char*>(&block_id), sizeof(block_id));
^
In file included from ../src/main.cc:3:0:
/usr/include/nodejs/src/node_buffer.h:28:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/usr/include/nodejs/src/node_buffer.h:28:40: note: no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
/usr/include/nodejs/src/node_buffer.h:31:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/usr/include/nodejs/src/node_buffer.h:31:40: note: no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
/usr/include/nodejs/src/node_buffer.h:36:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/usr/include/nodejs/src/node_buffer.h:36:40: note: candidate expects 5 arguments, 2 provided
/usr/include/nodejs/src/node_buffer.h:43:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/usr/include/nodejs/src/node_buffer.h:43:40: note: candidate expects 3 arguments, 2 provided
../src/main.cc:138:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle);
^
../src/main.cc: At global scope:
../src/main.cc:141:42: error: ‘Arguments’ does not name a type
Handle construct_block_blob(const Arguments& args) {
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h: In function ‘v8::Handlev8::Value construct_block_blob(const int&)’:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/main.cc:142:17: error: within this context
HandleScope scope;
^
../src/main.cc:144:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 2)
^
../src/main.cc:147:46: error: invalid types ‘const int[int]’ for array subscript
Local block_template_buf = args[0]->ToObject();
^
../src/main.cc:148:37: error: invalid types ‘const int[int]’ for array subscript
Local nonce_buf = args[1]->ToObject();
^
../src/main.cc:179:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output.data(), output.size());
^
../src/main.cc:179:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output.data(), output.size());
^
../src/main.cc:179:60: error: no matching function for call to ‘New(const char*, std::_cxx11::basic_string::size_type)’
Buffer* buff = Buffer::New(output.data(), output.size());
^
In file included from ../src/main.cc:3:0:
/usr/include/nodejs/src/node_buffer.h:28:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/usr/include/nodejs/src/node_buffer.h:28:40: note: no known conversion for argument 1 from ‘const char*’ to ‘v8::Isolate*’
/usr/include/nodejs/src/node_buffer.h:31:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/usr/include/nodejs/src/node_buffer.h:31:40: note: no known conversion for argument 1 from ‘const char*’ to ‘v8::Isolate*’
/usr/include/nodejs/src/node_buffer.h:36:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/usr/include/nodejs/src/node_buffer.h:36:40: note: candidate expects 5 arguments, 2 provided
/usr/include/nodejs/src/node_buffer.h:43:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/usr/include/nodejs/src/node_buffer.h:43:40: note: candidate expects 3 arguments, 2 provided
../src/main.cc:180:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle
);
^
../src/main.cc: At global scope:
../src/main.cc:183:37: error: ‘Arguments’ does not name a type
Handle convert_blob_bb(const Arguments& args) {
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h: In function ‘v8::Handlev8::Value convert_blob_bb(const int&)’:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/main.cc:184:17: error: within this context
HandleScope scope;
^
../src/main.cc:186:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../src/main.cc:189:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../src/main.cc:204:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output.data(), output.size());
^
../src/main.cc:204:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output.data(), output.size());
^
../src/main.cc:204:60: error: no matching function for call to ‘New(const char*, std::_cxx11::basic_string::size_type)’
Buffer* buff = Buffer::New(output.data(), output.size());
^
In file included from ../src/main.cc:3:0:
/usr/include/nodejs/src/node_buffer.h:28:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/usr/include/nodejs/src/node_buffer.h:28:40: note: no known conversion for argument 1 from ‘const char*’ to ‘v8::Isolate*’
/usr/include/nodejs/src/node_buffer.h:31:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/usr/include/nodejs/src/node_buffer.h:31:40: note: no known conversion for argument 1 from ‘const char*’ to ‘v8::Isolate*’
/usr/include/nodejs/src/node_buffer.h:36:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/usr/include/nodejs/src/node_buffer.h:36:40: note: candidate expects 5 arguments, 2 provided
/usr/include/nodejs/src/node_buffer.h:43:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/usr/include/nodejs/src/node_buffer.h:43:40: note: candidate expects 3 arguments, 2 provided
../src/main.cc:205:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle
);
^
../src/main.cc: At global scope:
../src/main.cc:208:36: error: ‘Arguments’ does not name a type
Handle address_decode(const Arguments& args) {
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h: In function ‘v8::Handlev8::Value address_decode(const int&)’:
/usr/include/nodejs/deps/v8/include/v8.h:885:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/main.cc:209:17: error: within this context
HandleScope scope;
^
../src/main.cc:211:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../src/main.cc:214:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../src/main.cc:224:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Undefined());
^
../src/main.cc:224:38: error: too few arguments to function ‘v8::Localv8::Primitive v8::Undefined(v8::Isolate*)’
return scope.Close(Undefined());
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h:315:27: note: declared here
friend Local Undefined(Isolate* isolate);
^
../src/main.cc:228:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Undefined());
^
../src/main.cc:228:38: error: too few arguments to function ‘v8::Localv8::Primitive v8::Undefined(v8::Isolate*)’
return scope.Close(Undefined());
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h:315:27: note: declared here
friend Local Undefined(Isolate* isolate);
^
../src/main.cc:231:22: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Undefined());
^
../src/main.cc:231:38: error: too few arguments to function ‘v8::Localv8::Primitive v8::Undefined(v8::Isolate*)’
return scope.Close(Undefined());
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h:315:27: note: declared here
friend Local Undefined(Isolate* isolate);
^
../src/main.cc:233:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(Integer::New(static_cast<uint32_t>(prefix)));
^
../src/main.cc:233:66: error: no matching function for call to ‘v8::Integer::New(uint32_t)’
return scope.Close(Integer::New(static_cast<uint32_t>(prefix)));
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h:2499:25: note: candidate: static v8::Localv8::Integer v8::Integer::New(v8::Isolate*, int32_t)
static Local New(Isolate* isolate, int32_t value);
^
/usr/include/nodejs/deps/v8/include/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided
../src/main.cc: In function ‘void init(v8::Handlev8::Object)’:
../src/main.cc:237:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("construct_block_blob"), FunctionTemplate::N
^
../src/main.cc:237:103: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
("construct_block_blob"), FunctionTemplate::New(construct_block_blob)->GetFunct
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int)
static Local New(
^
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../src/main.cc:238:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("get_block_id"), FunctionTemplate::New(get_b
^
../src/main.cc:238:87: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
tring::NewSymbol("get_block_id"), FunctionTemplate::New(get_block_id)->GetFunct
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int)
static Local New(
^
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../src/main.cc:239:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("convert_blob"), FunctionTemplate::New(conve
^
../src/main.cc:239:87: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
tring::NewSymbol("convert_blob"), FunctionTemplate::New(convert_blob)->GetFunct
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int)
static Local New(
^
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../src/main.cc:240:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("convert_blob_bb"), FunctionTemplate::New(co
^
../src/main.cc:240:93: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
:NewSymbol("convert_blob_bb"), FunctionTemplate::New(convert_blob_bb)->GetFunct
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int)
static Local New(
^
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../src/main.cc:241:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("address_decode"), FunctionTemplate::New(add
^
../src/main.cc:241:91: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
g::NewSymbol("address_decode"), FunctionTemplate::New(address_decode)->GetFunct
^
In file included from /usr/include/nodejs/src/node.h:42:0,
from ../src/main.cc:2:
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int)
static Local New(
^
/usr/include/nodejs/deps/v8/include/v8.h:4349:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
cryptonote.target.mk:102: recipe for target 'Release/obj.target/cryptonote/src/main.o' failed
make: *** [Release/obj.target/cryptonote/src/main.o] Error 1
make: Leaving directory '/home/elsasha/pool/node_modules/cryptonote-util/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:269:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.10.0-42-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/elsasha/pool/node_modules/cryptonote-util
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
[email protected] /home/elsasha/pool
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] (git://github.com/fancoder/node-multi-hashing.git#ec00b7429b668b3366d80a8fa85e9c22b4792d70)
└── [email protected]

npm ERR! Linux 4.10.0-42-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "update"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the cryptonote-util package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs cryptonote-util
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls cryptonote-util
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/elsasha/pool/npm-debug.log

Data-sort Paid in admin area

Hi, I check some days to sort by Paid in (admin area/user list), some times goes and sometimes not, finally I know why, the problem is when there are some wallet with pending balue but with paid=0.

image

The attribute (data-sort=) doesn't work

How can we solved it?

Negative Shares/Diff percentage?!?

Hello, when the pool cannot find a block for some time, i.e. when the Shares/Diff percentage is obviously more than 100%, I do not get the correct value like for example 123%, but the API displays negative numbers instead! Like -93%, -37%, etc.
Any idea why, anyone?

TypeError: Cannot read property 'pool' of undefined

root@vultr:~/forknote-pool# node init.js
2017-10-28 08:00:21 [master] Pool spawned on 1 thread(s)
2017-10-28 08:00:23 [unlocker] Started
2017-10-28 08:00:23 [payments] Started
2017-10-28 08:00:23 [charts] Started
2017-10-28 08:00:23 [unlocker] No blocks candidates in redis
2017-10-28 08:00:23 [charts] Started
2017-10-28 08:00:23 [chartsDataCollector] Started
2017-10-28 08:00:23 [payments] No workers' balances reached the minimum payment threshold
2017-10-28 08:00:23 [api] API started & listening on port 8117
2017-10-28 08:00:53 [unlocker] No blocks candidates in redis

2017-10-28 08:01:23 [unlocker] No blocks candidates in redis

TypeError: Cannot read property 'pool' of undefined
at /root/forknote-pool/lib/charts.js:148:30
at IncomingMessage. (/root/forknote-pool/lib/apiInterfaces.js:31:17)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:919:16
at process._tickCallback (node.js:419:13)

TypeError: Cannot read property 'pool' of undefined
at /root/forknote-pool/lib/charts.js:148:30
at IncomingMessage. (/root/forknote-pool/lib/apiInterfaces.js:31:17)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:919:16
at process._tickCallback (node.js:419:13)

TypeError: Cannot read property 'pool' of undefined
at /root/forknote-pool/lib/charts.js:154:30
at IncomingMessage. (/root/forknote-pool/lib/apiInterfaces.js:31:17)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:919:16
at process._tickCallback (node.js:419:13)

TypeError: Cannot read property 'pool' of undefined
at /root/forknote-pool/lib/charts.js:154:30
at IncomingMessage. (/root/forknote-pool/lib/apiInterfaces.js:31:17)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
at _stream_readable.js:919:16
at process._tickCallback (node.js:419:13)

2017-10-28 08:01:23 [master] chartsDataCollector died, spawning replacement...
2017-10-28 08:01:25 [charts] Started
2017-10-28 08:01:25 [chartsDataCollector] Started
^Croot@vultr:~/forknote-pool#

Admin stats (profit) not seem to agree with the pool wallet

I made a test cryptonote coin, which works fine.

I set up a pool for it and stuck 2 miners on it.

Everything works fine. Blocks are mined, miners are paid.

But he pool's wallet doesn't seem to retain as much fee as the /admin.html page suggests.

The tx fees seem negligible compared to the block reward (~3500 coins reward per block, tx fee: 0.01 coin)

Fee is set to 2% but really the pool wallet doesn't show anywhere near what the "Profit" in the /admin.html page says - even after accounting for unconfirmed tx's.

Any idea?

forknote-pool running / no update on website

Hi,

my forknote-pool is up and running. One miner is already connected. based on the log of the pool everything looks good. no errors. but i do not get updates (hashrate, blockchain infos, ... ) on the website.

image

Any advices what could be wrong in the config?

Blockchain Explorer

Blockchain explorer is not displaying the blocks/transactions, it just shows the empty page with no values.

I've setup the pool in a subdirectory like http://xyz.com/pool
And here is my front-end settings

var api = "http://xyz.com/pool:8117";
var api_blockexplorer = "http://xyz.com/pool:1118";
var poolHost = "xyz.com/pool";

And I've added this to the coin config in the pool

rpc-bind-ip=0.0.0.0
enable-blockchain-indexes=1
enable-cors=*

Please advise as to what I need to change to display the blockchain correctly.

Error with send_transaction RPC request to wallet daemon (karbowanec) ECONNRESET read

Please advise how to run RPC wallet with closed console (as it have diferent options flags), as well as how to configure walletd rpc to fix payment issue miners:

username@server_ip:/home/pool# node init.js 2018-04-29 18:52:18 [charts] Started 2018-04-29 18:52:18 [payments] Started 2018-04-29 18:52:18 [api] API started & listening on port 8117 2018-04-29 18:52:18 [unlocker] Started 2018-04-29 18:52:18 [charts] Started 2018-04-29 18:52:18 [chartsDataCollector] Started **2018-04-29 18:52:18 [payments] Error with send_transaction RPC request to wallet daemon {"code":"ECONNRESET","errno":"ECONNRESET","syscall":"read"} 2018-04-29 18:52:18 [payments] Payments failed to send to {"amount":60500000000000,"address":"my_wallet_number"} { amount: 430700000000000, address: 'my_wallet_number' } 2018-04-29 18:52:18 [payments] Payments splintered and 0 successfully sent, 1 failed** 2018-04-29 18:52:18 [unlocker] No pending blocks are unlocked yet (1 pending) 2018-04-29 18:52:18 [api] Stat collection finished: 14 ms redis, 9 ms daemon 2018-04-29 18:52:18 [api] Broadcasting to 0 visitors and 0 address lookups 2018-04-29 18:52:18 [pool] (Thread 1) New block to mine at height 225739 w/ difficulty of 4531775461 2018-04-29 18:52:18 [pool] (Thread 1) Started server listening on port 3333 2018-04-29 18:52:18 [pool] (Thread 1) Started server listening on port 5555 2018-04-29 18:52:18 [pool] (Thread 1) Started server listening on port 7777 2018-04-29 18:52:18 [pool] (Thread 1) Started server listening on port 8888 2018-04-29 18:52:18 [pool] (Thread 3) New block to mine at height 225739 w/ difficulty of 4531775461

Mined a block but no reward

So I was just testing the waters on setting up a mining pool. The pool is now working I already mined 5 blocks except that 3 of them did not give me rewards. After checking the block hashes the 3 blocks that did not give rewards has more than 1 transactions and the 2 blocks that gave me reward has only 1 transaction.

I am mining dynasticoin(DCY)

This one has only one transaction and the transaction hash appeared on my wallet
http://democats.org/blockchain/block/?name=dinastycoin&hash=16f288b0cc504b6dbafc5dcef535b978e2fb665609920fb63dd17d7fee5765ac

This one has 2 transactions but the transaction (81df5 ... 1bcfdf ) which I guess is the reward did not appear on my wallet.

http://democats.org/blockchain/block/?name=dinastycoin&hash=9557ae247987fe4509e5456a19a9dccbddcac2ffbfe220314fac2754a3d924f8

Here is my pool: http://dcy.cryptomineros.com/#pool_blocks

Is this an issue on the pool or the coin?

Pool fails to build

npm update
npm http GET https://registry.npmjs.org/bignum
npm http GET https://registry.npmjs.org/cli-color
npm http GET https://registry.npmjs.org/redis
npm http GET https://registry.npmjs.org/base58-native
npm http GET https://registry.npmjs.org/dateformat
npm http GET https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/cli-color
npm http 304 https://registry.npmjs.org/bignum
npm http 304 https://registry.npmjs.org/base58-native
npm http 304 https://registry.npmjs.org/redis
npm http 304 https://registry.npmjs.org/dateformat
npm http 304 https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/async/-/async-1.5.2.tgz
npm http 200 https://registry.npmjs.org/async/-/async-1.5.2.tgz
npm http GET https://registry.npmjs.org/async/1.5.2
npm http GET https://registry.npmjs.org/cryptonote-util/0.0.1
npm http GET https://registry.npmjs.org/multi-hashing/0.0.9
npm http GET https://registry.npmjs.org/base58-native/0.1.4
npm http GET https://registry.npmjs.org/redis/2.8.0
npm http GET https://registry.npmjs.org/dateformat/3.0.2
npm http GET https://registry.npmjs.org/cli-color/1.2.0
npm http GET https://registry.npmjs.org/bignum/0.12.5
npm http 304 https://registry.npmjs.org/base58-native/0.1.4
npm http 304 https://registry.npmjs.org/dateformat/3.0.2
npm http 304 https://registry.npmjs.org/redis/2.8.0
npm http 304 https://registry.npmjs.org/cli-color/1.2.0
npm http 304 https://registry.npmjs.org/bignum/0.12.5
npm http GET https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/node-pre-gyp
npm http 404 https://registry.npmjs.org/cryptonote-util/0.0.1
npm ERR! 404 'cryptonote-util' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Linux 4.10.0-35-generic
npm ERR! command "/home/rysioslaw/.nvm/v0.10.0/bin/node" "/home/rysioslaw/.nvm/v0.10.0/bin/npm" "update"
npm ERR! cwd /home/rysioslaw/pool
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! code E404
npm http 200 https://registry.npmjs.org/async/1.5.2
[email protected] node_modules/dateformat
npm http GET https://registry.npmjs.org/async/-/async-1.5.2.tgz
npm http GET https://registry.npmjs.org/redis-parser
npm http GET https://registry.npmjs.org/double-ended-queue
npm http GET https://registry.npmjs.org/redis-commands
npm http GET https://registry.npmjs.org/ansi-regex
npm http GET https://registry.npmjs.org/d
npm http GET https://registry.npmjs.org/es6-iterator
npm http GET https://registry.npmjs.org/es5-ext
npm http GET https://registry.npmjs.org/memoizee
npm http GET https://registry.npmjs.org/timers-ext
npm http 404 https://registry.npmjs.org/multi-hashing/0.0.9
npm http 304 https://registry.npmjs.org/double-ended-queue
npm http 304 https://registry.npmjs.org/redis-commands
npm http 304 https://registry.npmjs.org/node-pre-gyp
npm http 304 https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/ansi-regex
npm http 304 https://registry.npmjs.org/d
npm http 200 https://registry.npmjs.org/async/-/async-1.5.2.tgz
npm http 304 https://registry.npmjs.org/es6-iterator
npm http 304 https://registry.npmjs.org/redis-parser
npm http 304 https://registry.npmjs.org/es5-ext
npm http 304 https://registry.npmjs.org/memoizee
npm http 304 https://registry.npmjs.org/timers-ext
[email protected] node_modules/async
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/rysioslaw/pool/npm-debug.log
npm ERR! not ok code 0

Orphan

Hi, everyone. My NXB pool ( yes, another cryptonote-based coin ) has some very strange problem... 😂 The pool thinks all the blocks we found are orphan. However, only the last one is a real orphan block. Other blocks are just fine. Have you ever see this problem? http://youpool.io/NXB/#pool_blocks Now, I have to manually send the coins to the miner... Do you have some methods to "undo" the orphan? I mean, change some entries in the Redis database to make the pool think those blocks are normal? Thanks! 👍

invalid address used for login (no matter what coin)

Hello.
I'm trying to build a mining pool for Bitcoal (among other from forknote).
Pools build and start perfect but when I try to mine I receive the "invalid address used for login".
I also try for Quazarcoin and same happens

I think it is a cryptonote-util but I don't know
Could you please lend me a hand?

./bitcoal-escavo.sh
[00:21:37] Set default algorithm to cryptonight
[00:21:37] Global quota greatest common denominator set to 1
[00:21:37] Started sgminer 5.5.5-gm
[00:21:37] * using Jansson 2.7
[00:21:37] CL Platform vendor: Advanced Micro Devices, Inc.
[00:21:37] CL Platform name: AMD Accelerated Parallel Processing
[00:21:37] CL Platform version: OpenCL 2.0 AMD-APP (2442.7)
[00:21:37] Platform devices: 2
[00:21:37] 0 Ellesmere
[00:21:37] GPU0: detected PCIe topology 0000:02:00.0
[00:21:37] 1 Ellesmere
[00:21:37] GPU1: detected PCIe topology 0000:0a:00.0
[00:21:37] Failed to open/read /sys/bus/pci/devices/0000:02:00.0/pp_table
[00:21:37] Failed to open /sys/bus/pci/devices/0000:02:00.0/hwmon/hwmon2/pwm1
[00:21:37] Failed to open/read /sys/bus/pci/devices/0000:0a:00.0/pp_table
[00:21:37] Failed to open /sys/bus/pci/devices/0000:0a:00.0/hwmon/hwmon3/pwm1
[00:21:37] Number of ADL devices: 2
[00:21:37] Unable to load ATI ADL library.
[00:21:37] Default Devices = all
[00:21:37] set_devices(all)
[00:21:37] GPU 0 Worksize set to 8.
[00:21:37] GPU 1 Worksize set to 8.
[00:21:37] Loading settings from default_profile for pool 0
[00:21:37] Pool 0 Algorithm set to "cryptonight"
[00:21:37] Pool 0 devices set to "all"
[00:21:37] Pool 0 lookup gap set to "(null)"
[00:21:37] Pool 0 Raw Intensity set to "1024"
[00:21:37] Pool 0 Thread Concurrency set to "(null)"
[00:21:37] Pool 0 GPU Clock set to "(null)"
[00:21:37] Pool 0 GPU Memory clock set to "(null)"
[00:21:37] Pool 0 GPU Threads set to "(null)"
[00:21:37] Pool 0 GPU Fan set to "(null)"
[00:21:37] Pool 0 GPU Powertune set to "(null)"
[00:21:37] Pool 0 GPU Vddc set to "(null)"
[00:21:37] Pool 0 Shaders set to "(null)"
[00:21:37] Pool 0 Worksize set to "8"
[00:21:37] Trying to set current pool...
[00:21:37] Probing for an alive pool
[00:21:37] Testing 191.102.253.27
[00:21:37] Succeeded delayed connect
[00:21:37] 191.102.253.27 JSON stratum auth failed: {
"code": -1,
"message": "invalid address used for login"
}
[00:21:37] Closing socket for stratum 191.102.253.27

hashrate not accurate

Hello,

i sent 50kH/s, but in stats see 17-18k, not accurate.

and with my computer mine, have 40h/s in software, but in pool 10-20h/s.

nothing understand.

Error: Cannot find module 'multi-hashing'

can you please help with this error?
when start init.js :
Error: Cannot find module 'multi-hashing'

when trying to install multi-hashing (npm install multi-hashing), npm show me this error:
Failed at the [email protected] install script !

env:
ubuntu 16.04
node v8.9.4
npm 5.6.0

npm install multi-hashing:

CXX(target) Release/obj.target/multihashing/multihashing.o
../multihashing.cc: In function ‘v8::Handlev8::Value except(const char*)’:
../multihashing.cc:34:44: error: ‘New’ is not a member of ‘v8::String’
return ThrowException(Exception::Error(String::New(msg)));
^
../multihashing.cc:34:61: error: ‘ThrowException’ was not declared in this scope
return ThrowException(Exception::Error(String::New(msg)));
^
../multihashing.cc: At global scope:
../multihashing.cc:37:27: error: ‘Arguments’ does not name a type
Handle quark(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value quark(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:38:17: error: within this context
HandleScope scope;
^
../multihashing.cc:40:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:43:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:55:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:55:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:55:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:56:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:59:25: error: ‘Arguments’ does not name a type
Handle x11(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value x11(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:60:17: error: within this context
HandleScope scope;
^
../multihashing.cc:62:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:65:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:77:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:77:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:77:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:78:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:81:28: error: ‘Arguments’ does not name a type
Handle scrypt(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value scrypt(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:82:16: error: within this context
HandleScope scope;
^
../multihashing.cc:84:13: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 3)
^
../multihashing.cc:87:33: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:92:31: error: invalid types ‘const int[int]’ for array subscript
Local numn = args[1]->ToNumber();
^
../multihashing.cc:94:31: error: invalid types ‘const int[int]’ for array subscript
Local numr = args[2]->ToNumber();
^
../multihashing.cc:104:10: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:104:12: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:104:41: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:105:17: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:110:29: error: ‘Arguments’ does not name a type
Handle scryptn(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value scryptn(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:111:16: error: within this context
HandleScope scope;
^
../multihashing.cc:113:13: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 2)
^
../multihashing.cc:116:33: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:121:30: error: invalid types ‘const int[int]’ for array subscript
Local num = args[1]->ToNumber();
^
../multihashing.cc:135:10: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:135:12: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:135:41: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:136:17: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:139:32: error: ‘Arguments’ does not name a type
Handle scryptjane(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value scryptjane(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:140:17: error: within this context
HandleScope scope;
^
../multihashing.cc:142:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 5)
^
../multihashing.cc:145:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:150:31: error: invalid types ‘const int[int]’ for array subscript
Local num = args[1]->ToNumber();
^
../multihashing.cc:153:32: error: invalid types ‘const int[int]’ for array subscript
Local num2 = args[2]->ToNumber();
^
../multihashing.cc:156:32: error: invalid types ‘const int[int]’ for array subscript
Local num3 = args[3]->ToNumber();
^
../multihashing.cc:159:32: error: invalid types ‘const int[int]’ for array subscript
Local num4 = args[4]->ToNumber();
^
../multihashing.cc:169:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:169:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:169:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:170:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:173:28: error: ‘Arguments’ does not name a type
Handle keccak(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value keccak(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:174:17: error: within this context
HandleScope scope;
^
../multihashing.cc:176:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:179:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:191:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:191:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:191:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:192:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:196:28: error: ‘Arguments’ does not name a type
Handle bcrypt(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value bcrypt(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:197:17: error: within this context
HandleScope scope;
^
../multihashing.cc:199:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:202:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:212:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:212:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:212:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:213:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:216:27: error: ‘Arguments’ does not name a type
Handle skein(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value skein(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:217:17: error: within this context
HandleScope scope;
^
../multihashing.cc:219:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:222:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:234:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:234:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:234:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:235:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:239:29: error: ‘Arguments’ does not name a type
Handle groestl(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value groestl(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:240:17: error: within this context
HandleScope scope;
^
../multihashing.cc:242:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:245:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:257:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:257:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:257:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:258:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:262:35: error: ‘Arguments’ does not name a type
Handle groestlmyriad(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value groestlmyriad(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:263:17: error: within this context
HandleScope scope;
^
../multihashing.cc:265:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:268:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:280:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:280:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:280:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:281:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:285:27: error: ‘Arguments’ does not name a type
Handle blake(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value blake(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:286:17: error: within this context
HandleScope scope;
^
../multihashing.cc:288:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:291:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:303:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:303:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:303:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:304:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:308:27: error: ‘Arguments’ does not name a type
Handle fugue(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value fugue(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:309:17: error: within this context
HandleScope scope;
^
../multihashing.cc:311:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:314:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:326:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:326:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:326:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:327:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:331:27: error: ‘Arguments’ does not name a type
Handle qubit(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value qubit(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:332:17: error: within this context
HandleScope scope;
^
../multihashing.cc:334:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:337:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:349:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:349:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:349:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:350:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:354:28: error: ‘Arguments’ does not name a type
Handle hefty1(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value hefty1(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:355:17: error: within this context
HandleScope scope;
^
../multihashing.cc:357:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:360:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:372:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:372:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:372:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:373:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:377:30: error: ‘Arguments’ does not name a type
Handle shavite3(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value shavite3(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:378:17: error: within this context
HandleScope scope;
^
../multihashing.cc:380:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:383:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:395:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:395:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:395:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:396:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:399:33: error: ‘Arguments’ does not name a type
Handle cryptonight(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value cryptonight(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:400:17: error: within this context
HandleScope scope;
^
../multihashing.cc:404:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:407:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() >= 2) {
^
../multihashing.cc:408:19: error: invalid types ‘const int[int]’ for array subscript
if(!args[1]->IsBoolean())
^
../multihashing.cc:410:22: error: invalid types ‘const int[int]’ for array subscript
fast = args[1]->ToBoolean()->BooleanValue();
^
../multihashing.cc:413:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:428:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:428:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:428:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:429:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:432:25: error: ‘Arguments’ does not name a type
Handle x13(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value x13(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:433:17: error: within this context
HandleScope scope;
^
../multihashing.cc:435:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:438:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:450:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:450:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:450:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:451:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:454:31: error: ‘Arguments’ does not name a type
Handle boolberry(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value boolberry(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:455:17: error: within this context
HandleScope scope;
^
../multihashing.cc:457:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 2)
^
../multihashing.cc:460:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:461:39: error: invalid types ‘const int[int]’ for array subscript
Local target_spad = args[1]->ToObject();
^
../multihashing.cc:470:13: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if(args.Length() >= 3)
^
../multihashing.cc:471:18: error: invalid types ‘const int[int]’ for array subscript
if(args[2]->IsUint32())
^
../multihashing.cc:472:28: error: invalid types ‘const int[int]’ for array subscript
height = args[2]->ToUint32()->Uint32Value();
^
../multihashing.cc:470:7: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(args.Length() >= 3)
^
../multihashing.cc:485:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:485:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:485:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:486:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:489:27: error: ‘Arguments’ does not name a type
Handle nist5(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value nist5(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:490:17: error: within this context
HandleScope scope;
^
../multihashing.cc:492:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:495:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:507:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:507:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:507:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:508:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:511:26: error: ‘Arguments’ does not name a type
Handle sha1(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value sha1(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:512:17: error: within this context
HandleScope scope;
^
../multihashing.cc:514:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:517:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:529:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:529:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:529:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:530:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:533:25: error: ‘Arguments’ does not name a type
Handle x15(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value x15(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:534:17: error: within this context
HandleScope scope;
^
../multihashing.cc:536:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:539:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:551:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:551:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:551:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:552:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: At global scope:
../multihashing.cc:555:27: error: ‘Arguments’ does not name a type
Handle fresh(const Arguments& args) {
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h: In function ‘v8::Handlev8::Value fresh(const int&)’:
/root/.node-gyp/8.9.4/include/node/v8.h:874:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../multihashing.cc:556:17: error: within this context
HandleScope scope;
^
../multihashing.cc:558:14: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’
if (args.Length() < 1)
^
../multihashing.cc:561:34: error: invalid types ‘const int[int]’ for array subscript
Local target = args[0]->ToObject();
^
../multihashing.cc:573:11: error: expected primary-expression before ‘’ token
Buffer
buff = Buffer::New(output, 32);
^
../multihashing.cc:573:13: error: ‘buff’ was not declared in this scope
Buffer* buff = Buffer::New(output, 32);
^
../multihashing.cc:573:42: error: no matching function for call to ‘New(char [32], int)’
Buffer* buff = Buffer::New(output, 32);
^
In file included from ../multihashing.cc:2:0:
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length)
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from ‘char [32]’ to ‘v8::Isolate*’
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate*, char*, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/root/.node-gyp/8.9.4/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided
../multihashing.cc:574:18: error: ‘class v8::HandleScope’ has no member named ‘Close’
return scope.Close(buff->handle_);
^
../multihashing.cc: In function ‘void init(v8::Handlev8::Object)’:
../multihashing.cc:578:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("quark"), FunctionTemplate::New(quark)->GetF
^
../multihashing.cc:578:73: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
exports->Set(String::NewSymbol("quark"), FunctionTemplate::New(quark)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:579:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("x11"), FunctionTemplate::New(x11)->GetFunct
^
../multihashing.cc:579:69: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
exports->Set(String::NewSymbol("x11"), FunctionTemplate::New(x11)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:580:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("scrypt"), FunctionTemplate::New(scrypt)->Ge
^
../multihashing.cc:580:75: error: no matching function for call to ‘v8::FunctionTemplate::New()’
ports->Set(String::NewSymbol("scrypt"), FunctionTemplate::New(scrypt)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘’ to ‘v8::Isolate*’
../multihashing.cc:581:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("scryptn"), FunctionTemplate::New(scryptn)->
^
../multihashing.cc:581:77: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
rts->Set(String::NewSymbol("scryptn"), FunctionTemplate::New(scryptn)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:582:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("scryptjane"), FunctionTemplate::New(scryptj
^
../multihashing.cc:582:83: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
et(String::NewSymbol("scryptjane"), FunctionTemplate::New(scryptjane)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:583:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("keccak"), FunctionTemplate::New(keccak)->Ge
^
../multihashing.cc:583:75: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
ports->Set(String::NewSymbol("keccak"), FunctionTemplate::New(keccak)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:584:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("bcrypt"), FunctionTemplate::New(bcrypt)->Ge
^
../multihashing.cc:584:75: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
ports->Set(String::NewSymbol("bcrypt"), FunctionTemplate::New(bcrypt)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:585:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("skein"), FunctionTemplate::New(skein)->GetF
^
../multihashing.cc:585:73: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
exports->Set(String::NewSymbol("skein"), FunctionTemplate::New(skein)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:586:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("groestl"), FunctionTemplate::New(groestl)->
^
../multihashing.cc:586:77: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
rts->Set(String::NewSymbol("groestl"), FunctionTemplate::New(groestl)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:587:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("groestlmyriad"), FunctionTemplate::New(groe
^
../multihashing.cc:587:89: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
ing::NewSymbol("groestlmyriad"), FunctionTemplate::New(groestlmyriad)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:588:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("blake"), FunctionTemplate::New(blake)->GetF
^
../multihashing.cc:588:73: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
exports->Set(String::NewSymbol("blake"), FunctionTemplate::New(blake)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:589:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("fugue"), FunctionTemplate::New(fugue)->GetF
^
../multihashing.cc:589:73: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
exports->Set(String::NewSymbol("fugue"), FunctionTemplate::New(fugue)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:590:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("qubit"), FunctionTemplate::New(qubit)->GetF
^
../multihashing.cc:590:73: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
exports->Set(String::NewSymbol("qubit"), FunctionTemplate::New(qubit)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:591:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("hefty1"), FunctionTemplate::New(hefty1)->Ge
^
../multihashing.cc:591:75: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
ports->Set(String::NewSymbol("hefty1"), FunctionTemplate::New(hefty1)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:592:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("shavite3"), FunctionTemplate::New(shavite3)
^
../multihashing.cc:592:79: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
s->Set(String::NewSymbol("shavite3"), FunctionTemplate::New(shavite3)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:593:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("cryptonight"), FunctionTemplate::New(crypto
^
../multihashing.cc:593:85: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
(String::NewSymbol("cryptonight"), FunctionTemplate::New(cryptonight)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:594:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("x13"), FunctionTemplate::New(x13)->GetFunct
^
../multihashing.cc:594:69: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
exports->Set(String::NewSymbol("x13"), FunctionTemplate::New(x13)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:595:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("boolberry"), FunctionTemplate::New(boolberr
^
../multihashing.cc:595:81: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’

Set(String::NewSymbol("boolberry"), FunctionTemplate::New(boolberry)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:596:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("nist5"), FunctionTemplate::New(nist5)->GetF
^
../multihashing.cc:596:73: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
exports->Set(String::NewSymbol("nist5"), FunctionTemplate::New(nist5)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:597:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("sha1"), FunctionTemplate::New(sha1)->GetFun
^
../multihashing.cc:597:71: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
exports->Set(String::NewSymbol("sha1"), FunctionTemplate::New(sha1)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:598:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("x15"), FunctionTemplate::New(x15)->GetFunct
^
../multihashing.cc:598:69: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
exports->Set(String::NewSymbol("x15"), FunctionTemplate::New(x15)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
../multihashing.cc:599:18: error: ‘NewSymbol’ is not a member of ‘v8::String’
exports->Set(String::NewSymbol("fresh"), FunctionTemplate::New(fresh)->GetF
^
../multihashing.cc:599:73: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
exports->Set(String::NewSymbol("fresh"), FunctionTemplate::New(fresh)->GetFunct
^
In file included from /root/.node-gyp/8.9.4/include/node/node.h:63:0,
from ../multihashing.cc:1:
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/root/.node-gyp/8.9.4/include/node/v8.h:5395:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
multihashing.target.mk:143: recipe for target 'Release/obj.target/multihashing/multihashing.o' failed
make: *** [Release/obj.target/multihashing/multihashing.o] Error 1
make: Leaving directory '/var/www//pool_server/node_modules/multi-hashing/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.4.0-112-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/
/pool_server/node_modules/multi-hashing
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: 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! /root/.npm/_logs/2018-02-07T15_36_37_453Z-debug.log

Internal Error: Failed to create blocktemplate

I have a new install of forknote-pool running. It has been running fine for over 24 hours with my cpu miner mining just fine against the pool. I have received expected payouts and I see blocks being generated with appropriate shares/payouts being triggered.

However, within the last few minutes I started seeing these errors in the pool instance.

image

I've stopped and restarted the daemon, the wallet, the miner, and the pool (nodejs) but the problem continues.

What is throwing this "code":-5,"message" error?
What can I check to determine what the issue is?

Any suggestions on where to look would be appreciated.

REQUEST/WISH: HTTPS API

Hey guys, I was wondering if it was possible to make the API use HTTPS as well? If its not coded in right now, is there anyway we can code that into the pool at all?

Unlocker No block candidates in redis

After checking the log it seems to have been repeating this for almost a week. Is this normal? I have not unlocked a block before and this is my first time running my own pool.

Website not response (API)

Hi, I have a pool and each (5 or 10 days) I have problems with website, for example:

  1. When I enter in website, I see (loading circle), but nothings happens, I don't see data. If I check miner, Mining works fine without errors...
  2. I try to check from browser (F12), I see some api errors (not response).
  3. To solve, I enter in pool server (ssh) and kill node and start again (then website works weel again)
  4. from admin area I see latest (coin daemon/wallet) errors

{"code":"EMFILE","errno":"EMFILE","syscall":"connect"}

  1. I check other files, in (chartsDataCollector_crash.log) I see:
TypeError: Cannot read property 'minersHashrate' of undefined
    at /pool/lib/charts.js:167:22
    at ClientRequest.<anonymous> (/pool/lib/apiInterfaces.js:39:9)
    at ClientRequest.emit (events.js:95:17)
    at Socket.socketOnEnd [as onend] (http.js:1631:9)
    at Socket.g (events.js:180:16)
    at Socket.emit (events.js:117:20)
    at _stream_readable.js:944:16
    at process._tickCallback (node.js:458:13)

Any idea or things to do to check what it happens when I have this error? many API requests?

Thanks in advance

UPDATE 01/20/2018
It seams that there is a problem with (open files 1024)
https://stackoverflow.com/questions/34588/how-do-i-change-the-number-of-open-files-limit-in-linux

I can check when it happens with (ulimit -a)

I just edited (/etc/sysctl.conf) and (/etc/security/limits.conf)

In a few days I will know if it is that and I will give the answer

Unlocker and Payments module not sending balance and payments to miners?

Hello.

My pool has found a block but the miners have not received any balance or payment.

All of the miners appear with no pending or paid balance, and I can't understand why this hasn't been processed.

The pool info log shows that the block was found: https://snag.gy/HcxiQW.jpg

I have checked in the administration that the balance is already available.

In the unlocker log, I see that the block seems to have been unlocked already: https://snag.gy/bW1Fov.jpg

In the payments log I see messages saying that the payment threshold for the users has not been reached: https://snag.gy/8SKjfT.jpg

I have set in the config file for the pool the minimum values for payment as being 5:
https://snag.gy/znVCes.jpg
Here is the output I see on the site: https://snag.gy/dcgAaf.jpg

Am I missing something here, or is there anything not working in the payments module?

Thank you.

collectUsersHashrate

Hi looking at this function, a few things:

function collectUsersHashrate(chartName, settings) {
    var redisBaseKey = getStatsRedisKey(chartName) + ':';
    redisClient.keys(redisBaseKey + '*', function(keys) {
        var hashrates = {};
        for(var i in keys) {
            hashrates[keys[i].substr(keys[i].length)] = 0;
        }
        getUsersHashrates(function(newHashrates) {
            for(var address in newHashrates) {
                hashrates[address] = newHashrates[address];
            }
            storeCollectedValues(chartName, hashrates, settings);
        });
    });
}

I think...

redisClient.keys(redisBaseKey + '*', function(keys) {

should be:

redisClient.keys(redisBaseKey + '*', function(err, keys) {

The way it is 'keys' will be the error and null, and the for loop does not execute.

This line:

hashrates[keys[i].substr(keys[i].length)] = 0;

the statement

keys[i].substr(keys[i].length) will always equal ""

I think it was intended to be:

hashrates[keys[i].substr(redisBaseKey.length)] = 0

in order to write a hashrate of 0 to all inactive miners, however i am not sure if that is even necessary.

walletd RPC Invalid Method

Hi,

I've use forknote with forknote-pool. However, when I created a pool. The coin cannot be paid by the pool. It got this error.

And on walletd. It got

Requested method not found: transfer

And here's the log from forknote-pool. payments_error.log

2016-10-01 14:55:04 Error with send_transaction RPC request to wallet daemon {"code":-32601,"message":"Method not found"}
2016-10-01 14:55:04 Payments failed to send to {"amount":593670000000000,"address":"5JJ43s4yh7XgYgp4QpZEKCFjGFuKp3kLM7LCVBe3jWcZSA1S6REXHTpCZd2p5Wsu9yRcL9oVSPazo8iqCqSPxYqyEBu8h3A"} { amount: 8666000000000,
  address: '5LFJxDNS9wMZePvXt7mDVeNkXcNKKxRVzS9ncK7NBKNVeGBt8sYhcXybMSitfuBYYn8Rg7eGZeuWHUCgdMC7yDRF6cd7cCV' } { amount: 1062169000000000,
  address: '5GdAFX6xawa8VvpqQX98R5VkwPQfnqryjHiw4b3MWDh8LFFwHm4Z9k8MjvzEBF31fJFZkEtCq1tE1ZpQDkqPp9yh4om2Q3r' } { amount: 98977000000000,
  address: '5EvD8F3Gon3SUTcGX4QZZXDkycBqbRxvZcJtguecqXkfKHgegtFSKqzbp4WVybY5c9jD8KZVcRUrUENNWKiNY5s368xUVJT' } { amount: 340901000000000,
  address: '5MACfv1zHzvPW8D1oSPSPePMRXyid2y7M3BdCDCViqva9YanFPq8Vm1Miobay7t2c5SA9nssj5wWB3dqr3TggJkSSgTdny8' } { amount: 532098000000000,
  address: '5DYSNVFX6o13jJtx72m9npbH8nCKpNXr2P7pKanvpXiCSa3x2p5wPQs3LvJbibzxU7fUeGMvrEVpCPn39Y5S8DEkFrNBLaS' } { amount: 105146000000000,
  address: '5Kajeoe7dtw9bWq2rhVXiHZLWPKe8gttuLPhHr1z6GZCCHqDgRipZjqEZDfRgAbWX5bWiYwuoL4r3hCTKjuoDG3YAhoFEbe' } { amount: 876625000000000,
  address: '5LCYngc9UwPaPPkvdLVvzu44JASzvapLwJ9rJSYbDcC1BiAqbHeyeZMNzyobQkE9EXRYGainHXoiA8uuPT2YEWrHK6K8NTh' } { amount: 59069000000000,
  address: '5CaMMgf7Xwj7Yg5HDr55KuUUbPzEU5UDYQA25t7EAyAjinDPBxVJjcKV9JpbaRosg9WkNEE2bMRGDeS2jiMK4HLTKQifAkC' } { amount: 245016000000000,
  address: '5GoVffpxHCP6WyC8yeyCfYZ7GKirANmxQPPHw3awZtZHivqCS8ZrzKTbjS1wotBe5vRuvgWN62Ytw6ZGeWFE9sfR9mkyDgP' } { amount: 439016000000000,
  address: '5LLHvE7xEviFEA91oYciNrHuQcyNjSyA7gjXAieQq22BJGFSmvcaLH28qdfqeXkNv7j5C6JgRiVc21WzG2Ha5Mjx9CPAS8u' } { amount: 157270000000000,
  address: '5JS7vuRAGpx6xQUX2tgmCrZ1RXzsfJNswHd9YSLYv5DQP5sPfvo3f2kELHiTfEtoMCLtcFfTWgKENSfUUnmDjEvVBgHqovE' } { amount: 12014000000000,
  address: '5LDHPZPevxw15z6KgJrvUyEb64ySnrHeJ4RLd3C9McTd2A9g3RFmFT7jHHTVhLQwkNY3pme73YKeJ4TSVUm1dz3n5ewWwHR' } { amount: 390133000000000,
  address: '5LimvMbNUp713DegNPED1NLVL4g3dnbHCUJoaNfP8cTDQf8uQk7ys3KUWXKPVqjghCNEEQtiiHEZDYiA42ndHcQd1Mhv7sv' } { amount: 140748000000000,
  address: '5ETzMBRBUtuS5sgrTRL9X5bMYwNBL1Q9BRJNeYRJZ9wEVzvVZ7EiXpDinRFfhxhfz7BLWTSYabmnZUj35QMzuBQ33aoSAC6' } { amount: 875216000000000,
  address: '5LZdtcQkXCSHst1fx1fo2jNfVjeneK28jeobqv8HMTKo25aHdFvC5vBQ1PDASeEvnebJfwfMPfdH61UdnBKMAoMh6ap6d3z' } { amount: 19282000000000,
  address: '5J58AUK1wuZXiqQtEsoTyrYZMtVDzvRx9MVdi3fKtNdj6KvejaSxUXcFkRkKV3m3NrQziXTdoXkUoSg5Tn5msBgNH5ZtVw2' } { amount: 1958804000000000,
  address: '5FY7oRSAHaq3fSoyaJVSp5cfzSzH5p5cbAzAP1WwbaSVLrmDrBDqeYmbRgb2LygDZE4s16UDH5uBGbdNccTpcfyxGVoBgk5' } { amount: 1530263000000000,
  address: '5FygwkSy6S1KgztuSDqeBE2uhePn7uVSyfyunxkB9JDiBKgxnDr1yKBUhkLv29djjW7fZx4C5uA3NBZvxcEUUK6h25Gnvzr' } { amount: 238317000000000,
  address: '5EAmfr3nTd4TACVnFw8rhtAxnMME2nwnLgUZYFnUK2sd6K5jBSrBLir7XRdg244h33cd5261rvcavU225VntNRFd6w1PVgU' } { amount: 652096000000000,
  address: '5Dw7yatMN1heACzdDZRrLN4edm7VDeESheGDnAAxyiR5BtXmWivB6yYdFjHhJ2rGATGH7XUNDyw5sUaSa7xWkphF9Jt94Vr' }2016-10-01 14:55:04 Error with send_transaction RPC request to wallet daemon {"code":-32601,"message":"Method not found"}
2016-10-01 14:55:04 Payments failed to send to {"amount":593670000000000,"address":"5JJ43s4yh7XgYgp4QpZEKCFjGFuKp3kLM7LCVBe3jWcZSA1S6REXHTpCZd2p5Wsu9yRcL9oVSPazo8iqCqSPxYqyEBu8h3A"} { amount: 8666000000000,
  address: '5LFJxDNS9wMZePvXt7mDVeNkXcNKKxRVzS9ncK7NBKNVeGBt8sYhcXybMSitfuBYYn8Rg7eGZeuWHUCgdMC7yDRF6cd7cCV' } { amount: 1062169000000000,
  address: '5GdAFX6xawa8VvpqQX98R5VkwPQfnqryjHiw4b3MWDh8LFFwHm4Z9k8MjvzEBF31fJFZkEtCq1tE1ZpQDkqPp9yh4om2Q3r' } { amount: 98977000000000,
  address: '5EvD8F3Gon3SUTcGX4QZZXDkycBqbRxvZcJtguecqXkfKHgegtFSKqzbp4WVybY5c9jD8KZVcRUrUENNWKiNY5s368xUVJT' } { amount: 340901000000000,
  address: '5MACfv1zHzvPW8D1oSPSPePMRXyid2y7M3BdCDCViqva9YanFPq8Vm1Miobay7t2c5SA9nssj5wWB3dqr3TggJkSSgTdny8' } { amount: 532098000000000,
  address: '5DYSNVFX6o13jJtx72m9npbH8nCKpNXr2P7pKanvpXiCSa3x2p5wPQs3LvJbibzxU7fUeGMvrEVpCPn39Y5S8DEkFrNBLaS' } { amount: 105146000000000,
  address: '5Kajeoe7dtw9bWq2rhVXiHZLWPKe8gttuLPhHr1z6GZCCHqDgRipZjqEZDfRgAbWX5bWiYwuoL4r3hCTKjuoDG3YAhoFEbe' } { amount: 876625000000000,
  address: '5LCYngc9UwPaPPkvdLVvzu44JASzvapLwJ9rJSYbDcC1BiAqbHeyeZMNzyobQkE9EXRYGainHXoiA8uuPT2YEWrHK6K8NTh' } { amount: 59069000000000,
  address: '5CaMMgf7Xwj7Yg5HDr55KuUUbPzEU5UDYQA25t7EAyAjinDPBxVJjcKV9JpbaRosg9WkNEE2bMRGDeS2jiMK4HLTKQifAkC' } { amount: 245016000000000,
  address: '5GoVffpxHCP6WyC8yeyCfYZ7GKirANmxQPPHw3awZtZHivqCS8ZrzKTbjS1wotBe5vRuvgWN62Ytw6ZGeWFE9sfR9mkyDgP' } { amount: 439016000000000,
  address: '5LLHvE7xEviFEA91oYciNrHuQcyNjSyA7gjXAieQq22BJGFSmvcaLH28qdfqeXkNv7j5C6JgRiVc21WzG2Ha5Mjx9CPAS8u' } { amount: 157270000000000,
  address: '5JS7vuRAGpx6xQUX2tgmCrZ1RXzsfJNswHd9YSLYv5DQP5sPfvo3f2kELHiTfEtoMCLtcFfTWgKENSfUUnmDjEvVBgHqovE' } { amount: 12014000000000,
  address: '5LDHPZPevxw15z6KgJrvUyEb64ySnrHeJ4RLd3C9McTd2A9g3RFmFT7jHHTVhLQwkNY3pme73YKeJ4TSVUm1dz3n5ewWwHR' } { amount: 390133000000000,
  address: '5LimvMbNUp713DegNPED1NLVL4g3dnbHCUJoaNfP8cTDQf8uQk7ys3KUWXKPVqjghCNEEQtiiHEZDYiA42ndHcQd1Mhv7sv' } { amount: 140748000000000,
  address: '5ETzMBRBUtuS5sgrTRL9X5bMYwNBL1Q9BRJNeYRJZ9wEVzvVZ7EiXpDinRFfhxhfz7BLWTSYabmnZUj35QMzuBQ33aoSAC6' } { amount: 875216000000000,
  address: '5LZdtcQkXCSHst1fx1fo2jNfVjeneK28jeobqv8HMTKo25aHdFvC5vBQ1PDASeEvnebJfwfMPfdH61UdnBKMAoMh6ap6d3z' } { amount: 19282000000000,
  address: '5J58AUK1wuZXiqQtEsoTyrYZMtVDzvRx9MVdi3fKtNdj6KvejaSxUXcFkRkKV3m3NrQziXTdoXkUoSg5Tn5msBgNH5ZtVw2' } { amount: 1958804000000000,
  address: '5FY7oRSAHaq3fSoyaJVSp5cfzSzH5p5cbAzAP1WwbaSVLrmDrBDqeYmbRgb2LygDZE4s16UDH5uBGbdNccTpcfyxGVoBgk5' } { amount: 1530263000000000,
  address: '5FygwkSy6S1KgztuSDqeBE2uhePn7uVSyfyunxkB9JDiBKgxnDr1yKBUhkLv29djjW7fZx4C5uA3NBZvxcEUUK6h25Gnvzr' } { amount: 238317000000000,
  address: '5EAmfr3nTd4TACVnFw8rhtAxnMME2nwnLgUZYFnUK2sd6K5jBSrBLir7XRdg244h33cd5261rvcavU225VntNRFd6w1PVgU' } { amount: 652096000000000,
  address: '5Dw7yatMN1heACzdDZRrLN4edm7VDeESheGDnAAxyiR5BtXmWivB6yYdFjHhJ2rGATGH7XUNDyw5sUaSa7xWkphF9Jt94Vr' }

hashrate on admin area

Hello everyone,

On Admin area --> Users List page Hashrate and hashes not displaying correctly. After hashrate value, all speed displays (H/S, KH/s, MH/s, etc...) not only the corresponding.

admin.html line 130 has to be changed as below

Original:
return parseInt(hashrate).toFixed(2) + byteUnits;
Correct:
return parseInt(hashrate).toFixed(2) + byteUnits[i];

Duplicate share issue with Banned wallet_address@ip

Please advise the reason and fix to the following issue that sometimes happends:

2018-04-29 17:56:49 [pool] (Thread 32) Duplicate share: {"id":"576601394638419","job_id":"141831644205376","nonce":"a40900c8","result":"c6c719c4ad320bc2ad994eb2e278f299ba4bda428892142d0a0392ff27440000"} from [email protected] 2018-04-29 17:56:49 [pool] (Thread 32) Banned [email protected]

xxx.xxx.xxx.xxx = I hide our pool IP address
my_wallet_address = I hide our wallet address where miners are mining/pool login

chartsDataCollector died, spawning replacement

TypeError: Cannot read property 'minersHashrate' of undefined
    at /home/****/forknote-pool/lib/charts.js:166:22
    at IncomingMessage.<anonymous> (/home/ubuntu/forknote-pool/lib/apiInterfaces.js:31:17)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:188:7)
    at endReadableNT (_stream_readable.js:975:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

Seems like a noncritical error. This appears to the be code in question.

function getUsersHashrates(callback) {
    apiInterfaces.pool('/miners_hashrate', function(error, data) {
        callback(data.minersHashrate);
    });

install in my Scolcoin error

Start: node init.js -config=config.json

2017-12-14 03:30:20 [master] Pool spawned on 2 thread(s)
2017-12-14 03:30:21 [unlocker] Started
2017-12-14 03:30:21 [unlocker] No blocks candidates in redis
2017-12-14 03:30:21 [charts] Started
2017-12-14 03:30:21 [chartsDataCollector] Started
2017-12-14 03:30:21 [payments] Started
2017-12-14 03:30:21 [charts] Started
2017-12-14 03:30:21 [payments] No workers' balances reached the minimum payment threshold
2017-12-14 03:30:21 [api] API started & listening on port 8117
2017-12-14 03:30:21 [api] Error getting daemon data {"code":"ECONNRESET","errno" :"ECONNRESET","syscall":"read"}
2017-12-14 03:30:21 [api] Stat collection finished: 200 ms redis, 202 ms daemon
2017-12-14 03:30:21 [api] Error collecting all stats
2017-12-14 03:30:21 [pool] (Thread 1) Error polling getblocktemplate {"code":"EC ONNRESET","errno":"ECONNRESET","syscall":"read"}
2017-12-14 03:30:21 [pool] (Thread 1) Could not start pool
.....
i need help

Payments not sent

Someone does not get paid too?
I have a pool and the miners do not receive, even mining for days at BCN
Miners nevertheless mined the payment.

code":-7,"message":"Block not accepted

Blockchain stuck and getting this error.. Any idea how to fix it?

Error submitting block at height 3352 from xxxxxxxxxx share type: "valid" - {"code":-7,"message":"Block not accepted"}

huge logs

Hello.
the logs is growing up. should i use logrotate?
seems like soon logfiles can be about 2Gb

Error loading index.html

I am getting this error: "Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode" on line 317 in index.html

Please change this line form:
let title = $(".navbar-brand").text();
to
var title = $(".navbar-brand").text();

Internal Node Error -4 (Error with send_transaction RPC request to wallet daemon)

Hi Guys,

after a few days of running all services fine. (forknote daemon, simplewallet rpc, and the nodejs pool)
i get an error when the pool wants to make a payout to the clients. (see error below) The max amount should be ok as it is only 1000 coins.

2017-11-19 17:33:31 Error with send_transaction RPC request to wallet daemon {"code":-4,"message":"Internal node error"}
2017-11-19 17:33:31 Payments failed to send to {"amount":1000000000000000,"address":"ErHbYf6zSmdDJni9Zi97u51B4r8u7XAqGibXq83oNgHFHhXBkD3N9qVGRfRmgsRefseXTHXuZdfJ6PSjZENkTyPh65Kov42"}

any ideas why this error occurs and how to solve it? Restarting of all 3 services did not solve the problem.

Block unlocker marking all blocks as orphaned

I'm attempting to set up a pool for turtlecoin (https://github.com/turtlecoin/turtlecoin), at http://turtlepool.space, and appear to be having issues with getting the pool to unlock the blocks correctly.

UPDATE: For those using TurtleCoin, this was fixed, this bug still may apply to other cryptonote currencies.

I have set up the daemon and wallet (using simplewallet), and the pool appears to connect to them and read ok.

image
I then set up my miner to mine to the pool. It has managed to find several successful blocks, however when a block is discovered, the block becomes orphaned after the maturity depth has passed.

There are no obvious errors in any of the logs.

Upon further inspection, it appears that there is an off-by-one error in blockUnlocker.js.

This can be temporarily fixed by changing line 48 of blockUnlocker.js from
apiInterfaces.rpcDaemon('getblockheaderbyheight', {height: block.height}, function(error, result){
to
apiInterfaces.rpcDaemon('getblockheaderbyheight', {height: block.height + 1}, function(error, result){

However this feels like somewhat of a hack.

Please let me know if you need any more info.

No paymants and user stats....

Hi
I set ip 0.0.0.0 in run commands of daemons and simlewallet
and I run Pool witch command
node init.js -config=config.json
But the Pool I run before simplewallet and Its looks fine but take a look on screen shots below.
http://me4u.co/main.jpg
http://me4u.co/wallet.jpg
http://me4u.co/stats.jpg

like you see on first one Total Hashes Submitted: 25384124
But
Pending Balance: 0.000000000000
Total Paid: 0.000000000000

On second one like you see daemon and wallet is ON
On wallet is over 28k

and on third picture you can see stat's
all zeros...
and I don't have Idea why.

Transaction size too big in forknote-pool

Hi Guys,

since a view days i have a test pool running. since today i am experiencing troubles.

grafik

in the "pool_error.log" file i get the error that you see in the screenshot above.

i thought this problem is handled in the pool. mentioned in the readme?

grafik

what can i do solve this problem. i have pending coins now that cannot be send?
grafik

thanks for your help

Charts not updating!

Before after a restart the charts_info.log had this after start:

2018-01-29 00:27:11 Started
2018-01-29 00:28:11 hashrate chart collected value 69734. Total sets count 26
2018-01-29 00:28:11 workers chart collected value 55. Total sets count 26
2018-01-29 00:29:11 hashrate chart collected value 70867. Total sets count 26
2018-01-29 00:29:11 workers chart collected value 55. Total sets count 26

now when i start it just says started:

2018-01-29 00:43:10 Started
2018-01-29 00:50:13 Started
2018-01-29 17:55:27 Started
2018-01-29 19:34:55 Started
2018-01-31 11:38:23 Started
2018-01-31 11:40:36 Started
2018-01-31 11:46:46 Started
2018-01-31 11:48:54 Started
2018-01-31 12:05:20 Started
2018-01-31 12:06:59 Started
2018-01-31 12:08:26 Started
2018-01-31 13:50:03 Started
2018-01-31 13:52:44 Started
2018-01-31 13:58:51 Started
2018-01-31 14:04:35 Started
2018-01-31 14:10:25 Started
2018-01-31 14:14:12 Started
2018-01-31 20:50:26 Started

i have no charts other than payment being updated.

API writes this to the logs/terminal:

[api] Stat collection finished: 2 ms redis, 4 ms daemon

i can not see anything like this in my tail -f *.log

2017-07-12 16:43:42 [charts] Started
2017-07-12 16:43:42 [chartsDataCollector] Started

i am running the forknote-pool fork "default" no edits
when i look in the url:port/stats the chart data is OLD but the other data is NEW.

i have tried using my modded theme and the default forknote website. ( entire git repository)

Wallet Payments all have 0.00 Value

I've created a coin with FORKNOTE and installed the forknote-pool which is running perfectly except for one small issue... All of the payments generated to miners have a 0.00 value.

image

I have checked the miners wallet and the transaction are going into the wallet just fine. As well as the transactions being logged on the miner and admin pages.

Why is forknote-pool not paying out as expected?

I have the following payment configuration in the pool config.json file;

image

My forknote coin uses this configuration;

image

Any insight as to why the pool is generating 0.00 value payments would help!

Vagrantfile

Would you be open to a Vagrantfile that let's someone fire up the pool pretty quickly?

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.