diff --git a/README.md b/README.md index d8f0b22..ccd6a28 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ front-end website. #### Features * For the pool server it uses the highly efficient [node-stratum-pool](//github.com/zone117x/node-stratum-pool) module which -supports vardiff, POW & POS, transaction messages, anti-DDoS, IP banning, several hashing algorithms. +supports vardiff, POW & POS, transaction messages, anti-DDoS, IP banning, [several hashing algorithms](//github.com/zone117x/node-stratum-pool#hashing-algorithms-supported). * The portal has an [MPOS](//github.com/MPOS/php-mpos) compatibility mode so that the it can function as a drop-in-replacement for [python-stratum-mining](//github.com/Crypto-Expert/stratum-mining). This diff --git a/coins/vertcoin.json b/coins/vertcoin.json new file mode 100644 index 0000000..280beb4 --- /dev/null +++ b/coins/vertcoin.json @@ -0,0 +1,6 @@ +{ + "name": "Vertcoin", + "symbol": "VTC", + "algorithm": "scrypt-n", + "txMessages": false +} \ No newline at end of file diff --git a/libs/paymentProcessor.js b/libs/paymentProcessor.js index 70b80aa..d01271b 100644 --- a/libs/paymentProcessor.js +++ b/libs/paymentProcessor.js @@ -64,7 +64,8 @@ function SetupForPool(logger, poolOptions, setupFinished){ daemon.cmd('validateaddress', [poolOptions.address], function(result){ if (!result[0].response || !result[0].response.ismine){ logger.error(logSystem, logComponent, - 'Daemon does not own pool address - payment processing can not be done with this daemon'); + 'Daemon does not own pool address - payment processing can not be done with this daemon, ' + + JSON.stringify(result[0].response)); return; } callback() diff --git a/pool_configs/vertcoin_example.json b/pool_configs/vertcoin_example.json new file mode 100644 index 0000000..f16a917 --- /dev/null +++ b/pool_configs/vertcoin_example.json @@ -0,0 +1,57 @@ +{ + "enabled": true, + "coin": "vertcoin.json", + + "shareProcessing": { + "internal": { + "enabled": true, + "validateWorkerAddress": true, + "paymentInterval": 60, + "minimumPayment": 100.001, + "minimumReserve": 10, + "feePercent": 0.02, + "feeReceiveAddress": "VrcunuCcNUULMBoiw66v9SAdQq2m1FpP3C", + "feeWithdrawalThreshold": 5, + "daemon": { + "host": "localhost", + "port": 13295, + "user": "testuser", + "password": "testpass" + }, + "redis": { + "host": "localhost", + "port": 6379 + } + }, + "mpos": { + "enabled": false, + "host": "localhost", + "port": 3306, + "user": "me", + "password": "mypass", + "database": "ltc", + "stratumAuth": "password" + } + }, + + "address": "VrcunuCcNUULMBoiw66v9SAdQq2m1FpP3C", + "blockRefreshInterval": 1000, + "txRefreshInterval": 20000, + "connectionTimeout": 600, + + + "ports": { + "6381": { + "diff": 8 + } + }, + + "daemons": [ + { + "host": "localhost", + "port": 13295, + "user": "testuser", + "password": "testpass" + } + ] +} \ No newline at end of file