My experience trying to set up a Lex code pool



  • Lexicon said running a pool is not as easy as it looks. You describe an inconvenience that can be corrected. I have lived through situations that were devastating. You need to post the whole conf.js here. (XXXXXXX out passphrase)!



  • @rds owning a pool is a lot more complicated than you think.

    what you have experienced here is a fork. the burstcoin.biz block explorer cannot be trusted as it stores static data in a sql table that doesnt update off the chain.

    ive highlighted this issue before and if you want to add what you've found to the thread the link is below

    https://forums.burst-team.us/post/72336



  • @tross said in My experience trying to set up a Lex code pool:

    Lexicon said running a pool is not as easy as it looks. You describe an inconvenience that can be corrected. I have lived through situations that were devastating. You need to post the whole conf.js here. (XXXXXXX out passphrase)!

    I didn't think it was an "inconvenience". I was just curious as to how the parameters are manipulated to effect the output you desire. I thought setting rounds high and min payout would defer payment, which it appears to have done, but setting rounds and minimum low did not release the payment as I expected. Also, I was unable to make the logging to file feature work. Cancel, I read your reply on the other thread about not enabling logging but here is anyway. Here is the config file and the logging file:

    Burst-pool-config.js

    module.exports = {
    wallets : [
    {
    walletIP : '127.0.0.1',
    walletPort : 8105,
    walletUrl : 'http://127.0.0.1:8105'
    }
    ],
    redirection : {
    enabled : false,
    target : 'http://lhc.ddns.net:8124'
    },
    walletIndex: 0,
    blockMature : 1,
    txFeePercent : 0.0005,
    devFee : false,
    devFeePercent : 0.01,
    poolFee : 0.10,
    poolDiff : 1000000,
    poolDiffCurve : 0.75,
    poolPort : 8124,
    poolPvtKey : 'xxxxxxxxxxxxxxxxxxxxxxx',
    poolPublicRS : 'BURST-JNYD-MZZJ-7QJ3-3AHW8',
    poolPublic : '1401156732965114827',
    poolFeePaymentAddr : 'BURST-7LB5-LG5X-J8MY-9C7DD',
    defaultPaymentDeadline : 1440,
    poolFeePaymentTxFeeNQT : 100000000,
    httpPort : 80,
    websocketPort : 4443,
    enablePayment : false,
    minimumPayout : 10.0,
    clearingMinPayout : 2.0,
    lastSessionFile : 'last-session.json',
    cumulativeFundReduction : 0.5,
    logWebsocketToConsole : false,
    maxRoundCount : 10,
    sharePenalty : 0.0,
    maxRecentPaymentHistory : 50
    };

    burst-pool-logger.js

    var fs = require('fs');

    var enabled = true;
    var toConsole = true;
    var toFile = true;
    var toGeneralFile = true;
    var generalLogFilename = 'test.txt';

    function TimeStamp() {
    var date = new Date();
    var hour = date.getHours();
    hour = (hour < 10 ? "0" : "") + hour;
    var min = date.getMinutes();
    min = (min < 10 ? "0" : "") + min;
    var sec = date.getSeconds();
    sec = (sec < 10 ? "0" : "") + sec;
    var year = date.getFullYear();
    var month = date.getMonth() + 1;
    month = (month < 10 ? "0" : "") + month;
    var day = date.getDate();
    day = (day < 10 ? "0" : "") + day;
    return year + "-" + month + "-" + day + "_" + hour + "-" + min + "-" + sec;
    }
    function TimeStampFile() {
    var date = new Date();
    var hour = date.getHours();
    hour = (hour < 10 ? "0" : "") + hour;
    var min = date.getMinutes();
    min = (min < 10 ? "0" : "") + min;
    var sec = date.getSeconds();
    sec = (sec < 10 ? "0" : "") + sec;
    var year = date.getFullYear();
    var month = date.getMonth() + 1;
    month = (month < 10 ? "0" : "") + month;
    var day = date.getDate();
    day = (day < 10 ? "0" : "") + day;
    return day+ "-" + month + "-" + year;
    }

    function write(name,text){
    if (enabled){
    if (toFile){
    fs.appendFile('log_'+name+'.txt', TimeStamp()+' '+text+'\n', function (err) {
    if (err) throw err;
    });
    }
    if (toGeneralFile){
    fs.appendFile(generalLogFilename, TimeStamp()+' ('+name+') '+text+'\n', function (err) {
    if (err) throw err;
    });
    }
    if (toConsole){
    console.log('(logger.'+name+") "+text)
    }
    }
    }
    function writeDateLog(text){
    if (enabled){

    		if (toFile){
    		fs.exists('./Logs/log_'+TimeStampFile()+'.txt', function(exists) {
              if (exists) {
                	fs.appendFile('./Logs/log_'+TimeStampFile()+'.txt', TimeStamp()+' '+text+'\n', function (err) {
                    				if (err) throw err;
                    			});
              } else {
              fs.writeFile('./Logs/log_'+TimeStampFile()+'.txt', TimeStamp()+' '+text+'\n', function(err) {
                  if(err) {
                      return console.log(err);
                  }
    
                //  console.log("The file was saved!");
              });
              }
            });
    
    		}
    
    	}
    }
    

    module.exports = {
    write : write,
    writeDateLog:writeDateLog,
    TimeStamp : TimeStamp
    };



  • @Lexicon , @tross, so what is the difference between setting MaxRoundCount to 10 vs, 97, vs 197?



  • I set my max round to a number more than what it takes to get a block. I think I set mine at 90 rounds. When the pool hits 90 round it starts deleting old shares.



  • @lexicon, @tross

    My test pool is reporting payments to the miners but there is no payments in the miner's accounts. The coin is still in the pool account. Is there a port I have to open?



  • What ports do you have open?



  • @tross said in My experience trying to set up a Lex code pool:

    What ports do you have open?

    My router is port forwarding, 4443, 80 and 8124.

    My firewall allows node service in and out.

    My wallet is on port 8105.

    Here is a sample of what is reported but the payments are not made.

    0_1497129438340_358ae556-f4ca-457b-885b-d4eef2bff525-image.png

    BURST-7LB5-LG5X-J8MY-9C7DD payment amount 310.97 is paid
    13145299380788911090 payment amount 907.71 is paid
    15770867970884553098 payment amount 513.84 is paid



  • 8123 - 8125 is the port forward I use for this range



  • @tross said in My experience trying to set up a Lex code pool:

    8123 - 8125 is the port forward I use for this range

    ok, i will try it


Log in to reply
 

Looks like your connection to Burst - Efficient HDD Mining was lost, please wait while we try to reconnect.