SafeCash Added (#50)
This commit adds SafeCash support and also some minor changes to messages to make debugging easier.
This commit is contained in:
parent
ee038a55fa
commit
2582ba4044
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"name": "genesis",
|
||||
"symbol": "GENX",
|
||||
"algorithm": "equihash",
|
||||
"parameters": {
|
||||
"N": 192,
|
||||
"K": 7,
|
||||
"personalization": "GENX_PoW"
|
||||
},
|
||||
"requireShielding": false,
|
||||
"txfee": 0.0001,
|
||||
"peerMagic": "6b17a4bf",
|
||||
"payFoundersReward": true,
|
||||
"payAllFounders": true,
|
||||
"supportsSegwit": true,
|
||||
"foundersRewardAddresses": [
|
||||
"SPfqCriDDxsaH854z3YHigCNUPfSdN3sr1",
|
||||
"SaSmUn7LkjmV2WUH1dKFK1xZR1FMRT4qrn",
|
||||
"SbfnZN1rPdFq4WsfUUjxphGFcfEits7JXH",
|
||||
"SSW62dCjdCxNbKiZdmJh5GLepauY1J1rXU",
|
||||
"SW9GN4tZVfPftAQvGmZQLbK6NqePSs8fX1"
|
||||
],
|
||||
"infrastructureAddresses": [
|
||||
"SYSaqv2yChvf462gqmVX8VLrh3m6mXiPLd"
|
||||
],
|
||||
"giveawayAddresses": [
|
||||
"SQnWFjgxMJyyMQK97gjdF8gYBUUH3kSWEA"
|
||||
],
|
||||
"explorer": {
|
||||
"txURL": "http://explorer.genesisnetwork.io/tx/",
|
||||
"blockURL": "http://explorer.genesisnetwork.io/block/",
|
||||
"_comment_explorer": "This is the coin's explorer full base url for transaction and blocks i.e. (https://explorer.coin.com/tx/). The pool will automatically add the transaction id or block id at the end."
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"name": "genesis_testnet",
|
||||
"symbol": "GENXT",
|
||||
"algorithm": "equihash",
|
||||
"parameters": {
|
||||
"N": 192,
|
||||
"K": 7,
|
||||
"personalization": "GENX_PoW"
|
||||
},
|
||||
"requireShielding": false,
|
||||
"txfee": 0.0001,
|
||||
"peerMagic": "c654aac3",
|
||||
"payFoundersReward": true,
|
||||
"payAllFounders": true,
|
||||
"supportsSegwit": true,
|
||||
"foundersRewardAddresses": [
|
||||
"cHTa12xmjeDt4PykhVQLe9F1NGfayGfiC7",
|
||||
"c43Dy1h4Smp5EKjeF5sZew9SECVVUfkNnV",
|
||||
"c8wETLX6n3xbeNz4SAyf64E9vHPs3gNR2f",
|
||||
"c4wozCPLGwvuSXngEHaE8P9xMNzoaRU8Ss",
|
||||
"cAbEZ8P6b5a1HbC5LDksMifnGvgrgRrND6"
|
||||
],
|
||||
"infrastructureAddresses": [
|
||||
"cFDCRyLcXFWCPMMyxUJajGCPdJLoyAzck6"
|
||||
],
|
||||
"giveawayAddresses": [
|
||||
"c4NjsSBF4NGXbzxAJUiK1P1KfmxpxXiaaP"
|
||||
],
|
||||
"explorer": {
|
||||
"txURL": "https://testnet.genesisnetwork.io/tx/",
|
||||
"blockURL": "https://testnet.genesisnetwork.io/block/",
|
||||
"_comment_explorer": "This is the coin's explorer full base url for transaction and blocks i.e. (https://explorer.coin.com/tx/). The pool will automatically add the transaction id or block id at the end."
|
||||
}
|
||||
}
|
||||
|
|
@ -98,7 +98,7 @@ function SetupForPool(logger, poolOptions, setupFinished){
|
|||
function validateAddress (callback){
|
||||
daemon.cmd('validateaddress', [poolOptions.address], function(result) {
|
||||
if (result.error){
|
||||
logger.error(logSystem, logComponent, 'Error with payment processing daemon ' + JSON.stringify(result.error));
|
||||
logger.error(logSystem, logComponent, 'Error with payment processing daemon (validateAddress) ' + JSON.stringify(result.error));
|
||||
callback(true);
|
||||
}
|
||||
else if (!result.response || !result.response.ismine) {
|
||||
|
@ -115,7 +115,7 @@ function SetupForPool(logger, poolOptions, setupFinished){
|
|||
function validateTAddress (callback) {
|
||||
daemon.cmd('validateaddress', [poolOptions.tAddress], function(result) {
|
||||
if (result.error){
|
||||
logger.error(logSystem, logComponent, 'Error with payment processing daemon ' + JSON.stringify(result.error));
|
||||
logger.error(logSystem, logComponent, 'Error with payment processing daemon (validateTAddress) ' + JSON.stringify(result.error));
|
||||
callback(true);
|
||||
}
|
||||
else if (!result.response || !result.response.ismine) {
|
||||
|
@ -132,7 +132,7 @@ function SetupForPool(logger, poolOptions, setupFinished){
|
|||
function validateZAddress (callback) {
|
||||
daemon.cmd('z_validateaddress', [poolOptions.zAddress], function(result) {
|
||||
if (result.error){
|
||||
logger.error(logSystem, logComponent, 'Error with payment processing daemon ' + JSON.stringify(result.error));
|
||||
logger.error(logSystem, logComponent, 'Error with payment processing daemon (validateZAddress) ' + JSON.stringify(result.error));
|
||||
callback(true);
|
||||
}
|
||||
else if (!result.response || !result.response.ismine) {
|
||||
|
|
|
@ -0,0 +1,90 @@
|
|||
{
|
||||
"enabled": false,
|
||||
"coin": "genesis.json",
|
||||
|
||||
"address": "",
|
||||
"_comment_address": "a transparent address to send coinbase rewards to and to transfer to zAddress. Use the legacy options when using getnewaddress.",
|
||||
|
||||
"zAddress": "",
|
||||
"_comment_zAddress": "a private address used to send coins to tAddress.",
|
||||
|
||||
"tAddress": "",
|
||||
"_comment_tAddress": "transparent address used to send payments, make this a different address, otherwise payments will not send. Use the legacy options when using getnewaddress.",
|
||||
|
||||
"invalidAddress": "",
|
||||
"_comment_invalidAddress": "Invalid addresses will be converted to the above. Use the legacy options when using getnewaddress.",
|
||||
|
||||
"walletInterval": 2.5,
|
||||
|
||||
"rewardRecipients": {
|
||||
"": 0.2
|
||||
},
|
||||
|
||||
"paymentProcessing": {
|
||||
"enabled": true,
|
||||
"minConf": 100,
|
||||
"paymentMode": "prop",
|
||||
"_comment_paymentMode": "prop, pplnt",
|
||||
"paymentInterval": 120,
|
||||
"minimumPayment": 0.05,
|
||||
"maxBlocksPerPayment": 3,
|
||||
"daemon": {
|
||||
"host": "127.0.0.1",
|
||||
"port": 7234,
|
||||
"user": "rpcuser",
|
||||
"password": "rpcpass"
|
||||
}
|
||||
},
|
||||
|
||||
"tlsOptions": {
|
||||
"enabled": false,
|
||||
"serverKey": "",
|
||||
"serverCert": "",
|
||||
"ca": ""
|
||||
},
|
||||
|
||||
"ports": {
|
||||
"1234": {
|
||||
"diff": 0.05,
|
||||
"tls": false,
|
||||
"varDiff": {
|
||||
"minDiff": 0.04,
|
||||
"maxDiff": 36,
|
||||
"targetTime": 15,
|
||||
"retargetTime": 60,
|
||||
"variancePercent": 30
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"poolId": "main",
|
||||
"_comment_poolId": "use it for region identification: eu, us, asia or keep default if you have one stratum instance for one coin",
|
||||
|
||||
"daemons": [
|
||||
{
|
||||
"host": "127.0.0.1",
|
||||
"port": 7234,
|
||||
"user": "rpcuser",
|
||||
"password": "rpcpass"
|
||||
}
|
||||
],
|
||||
|
||||
"p2p": {
|
||||
"enabled": false,
|
||||
"host": "127.0.0.1",
|
||||
"port": 23803,
|
||||
"disableTransactions": true
|
||||
},
|
||||
|
||||
"mposMode": {
|
||||
"enabled": false,
|
||||
"host": "127.0.0.1",
|
||||
"port": 3306,
|
||||
"user": "me",
|
||||
"password": "mypass",
|
||||
"database": "genesis",
|
||||
"checkPassword": true,
|
||||
"autoCreateWorker": false
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,90 @@
|
|||
{
|
||||
"enabled": false,
|
||||
"coin": "testnet/genesis.json",
|
||||
|
||||
"address": "",
|
||||
"_comment_address": "a transparent address to send coinbase rewards to and to transfer to zAddress. Use the legacy options when using getnewaddress.",
|
||||
|
||||
"zAddress": "",
|
||||
"_comment_zAddress": "a private address used to send coins to tAddress.",
|
||||
|
||||
"tAddress": "",
|
||||
"_comment_tAddress": "transparent address used to send payments, make this a different address, otherwise payments will not send. Use the legacy options when using getnewaddress.",
|
||||
|
||||
"invalidAddress": "",
|
||||
"_comment_invalidAddress": "Invalid addresses will be converted to the above. Use the legacy options when using getnewaddress.",
|
||||
|
||||
"walletInterval": 2.5,
|
||||
|
||||
"rewardRecipients": {
|
||||
"": 0.2
|
||||
},
|
||||
|
||||
"paymentProcessing": {
|
||||
"enabled": false,
|
||||
"minConf": 100,
|
||||
"paymentMode": "prop",
|
||||
"_comment_paymentMode": "prop, pplnt",
|
||||
"paymentInterval": 300,
|
||||
"minimumPayment": 0.05,
|
||||
"maxBlocksPerPayment": 3,
|
||||
"daemon": {
|
||||
"host": "127.0.0.1",
|
||||
"port": 17234,
|
||||
"user": "rpcuser",
|
||||
"password": "rpcpass"
|
||||
}
|
||||
},
|
||||
|
||||
"tlsOptions": {
|
||||
"enabled": false,
|
||||
"serverKey": "",
|
||||
"serverCert": "",
|
||||
"ca": ""
|
||||
},
|
||||
|
||||
"ports": {
|
||||
"1234": {
|
||||
"diff": 0.05,
|
||||
"tls": false,
|
||||
"varDiff": {
|
||||
"minDiff": 0.04,
|
||||
"maxDiff": 36,
|
||||
"targetTime": 15,
|
||||
"retargetTime": 60,
|
||||
"variancePercent": 30
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"poolId": "main",
|
||||
"_comment_poolId": "use it for region identification: eu, us, asia or keep default if you have one stratum instance for one coin",
|
||||
|
||||
"daemons": [
|
||||
{
|
||||
"host": "127.0.0.1",
|
||||
"port": 17234,
|
||||
"user": "rpcuser",
|
||||
"password": "rpcpass"
|
||||
}
|
||||
],
|
||||
|
||||
"p2p": {
|
||||
"enabled": false,
|
||||
"host": "127.0.0.1",
|
||||
"port": 23803,
|
||||
"disableTransactions": true
|
||||
},
|
||||
|
||||
"mposMode": {
|
||||
"enabled": false,
|
||||
"host": "127.0.0.1",
|
||||
"port": 3306,
|
||||
"user": "me",
|
||||
"password": "mypass",
|
||||
"database": "genesis_testnet",
|
||||
"checkPassword": true,
|
||||
"autoCreateWorker": false
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue