守护进程实例0上的validateaddress rpc错误

时间:2014-04-17 18:36:39

标签: node.js port daemon p2p host

我在ubuntu上设置了一个私有的vertcoin p2pool(不得不从CentOS交换,因为我无法重复一些重要的步骤)。

我保存了vertcoind(默认)守护程序设置的图片,以防万一这很重要:

vertcoind daemon getinfo

现在使用node.js stratum-pool https://www.npmjs.org/package/stratum-pool

我收到此错误:

error: [validateaddress rpc error on daemon instance 0 - {"type":"request error","message":"socket hang up"}] undefined
error: [Could not start pool, "not all addresses are valid"] undefined

我的代码部分不确定是这样的:

"ports": {                                          // Each pool can have as many ports for your miners to connect to as you wish. Each port can be configured to use its own pool difficulty and variable difficulty settings. varDiff is optional and will only be used for the ports you configure it for.
    "9174": {                                       // A port for your miners to connect to
        "diff": 32,                                 // the pool difficulty for this port
        "varDiff": {                                // Variable difficulty is a feature that will automatically adjust difficulty for individual miners based on their hashrate in order to lower networking overhead
            "minDiff": 8,                           // Minimum difficulty
            "maxDiff": 512,                         // Network difficulty will be used if it is lower than this
            "targetTime": 15,                       // Try to get 1 share per this many seconds
            "retargetTime": 90,                     // Check to see if we should retarget every this many seconds
            "variancePercent": 30                   // Allow time to very this % from target without retargeting
            }}},
"daemons": [{                                       // Main daemon instance// Recommended to have at least two daemon instances running in case one drops out-of-sync or offline. For redundancy, all instances will be polled for block/transaction updates and be used for submitting blocks. Creating a backup daemon involves spawning a daemon using the "-datadir=/backup" argument which creates a new daemon instance with it's own RPC config. For more info on this see: - https://en.bitcoin.it/wiki/Data_directory & https://en.bitcoin.it/wiki/Running_bitcoind 
    "host": "127.0.0.1",
    "port": 5889,
    "user": "benzvertcoinwalletaddess",
    "password": "benzlongsecret"
    }],
"p2p": {                                            // This allows the pool to connect to the daemon as a node peer to recieve block updates. It may be the most efficient way to get block updates (faster than polling, less intensive than blocknotify script). However its still under development (not yet working).
    "enabled": false,
    "host": "-stratum+tcp://benzserver.private.com",
    "port": 9174,
    "magic": "0xfbc0b6dbL",                         // Magic value is different for main/testnet and for each coin. It is found in the daemon source code as the pchMessageStart variable. For example, litecoin mainnet magic: http://git.io/Bi8YFw & for litecoin testnet magic: http://git.io/NXBYJA
    "protocolVersion": 1300,                        // Found in src as the PROTOCOL_VERSION variable, for example: http://git.io/KjuCrw
    }

上面的代码是直接从npm / github中提取的stratum-pool(我只是缩进了我的方式,使我的眼睛更具可读性,显然我已经尝试将我的详细信息放入其中)。

通过阅读评论和研究我的印象是,使用此脚本,您本地连接到守护程序(在本例中为服务器)以获取阻止/事务更新以及提交块到阶层

接下来脚本正在连接到p2pool ..我认为评论是错误的方式,它说'#39;这允许池连接到守护进程'。当然,我服务器上的脚本连接到p2pool并告诉它我的服务器上的守护进程 然后p2pool可以作为节点对等连接到守护进程以接收块更新 !(Am我错了?)

它连接到p2pool的部分我把p2pool server3端口9174(为此我使用了https://github.com/Lovok/p2pool-n版本,因为p2pool-vtc不支持server3。)

我指定p2p端口的部分我选择了5899,因为如果我看看里面......

vi ~/.vertcoin/vertcoin.conf

你可以看到(指南http://coingolem.com/how-to-setup-your-own-p2pool-node-144/)我写道:

server=3


gen=0


rpcport=5899


rpcallowip=127.0.0.1


rpcuser=benzvertcoinwalletaddess


rpcpassword=benzlongsecret

rpcport

嗯,我有些事情我没有得到正确的答案!有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

"daemons": [{                                       
"host": "127.0.0.1",
    "port": 5899,// don't know where this originated from
    "user": "benzvertcoinwalletaddess",
    "password": "benzlongsecret"
    }],
"p2p": {                                            
    "enabled": false,
    "host": "127.0.0.1",
    //"port": defaults, //vertcoind --help
    "magic": "0xfbc0b6dbL",                         
    "protocolVersion": 1300,
    }

这很有用!