我已经在ubuntu上建立了一个私有的p2pool (不得不从CentOS交换,因为我不能重复一些重要的步骤)。
我保存了我的vertcoind (默认)守护进程设置的图片,以防这很重要:

现在使用node.js地层池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中提取的(我只是缩进了我的方法,使它对我自己来说更容易读懂,显然我已经尝试将我的详细信息放入其中)。
通过阅读注释和研究,我的印象是,使用此脚本,您将连接到后台进程本地(在本例中是服务器),以获取块/事务更新,并将块提交给层。
接下来,脚本将连接到p2pool。我认为这个评论是错误的,因为它说‘这允许池连接到守护进程’。当然,我服务器上的脚本连接到p2pool并告诉它服务器上的守护进程,,然后p2pool可以作为节点对等连接到守护进程,以接收块更新!(我错了吗?)
在连接到p2pool的部分,我放置了p2pool server3端口9174 (为此,我使用了https://github.com/Lovok/p2pool-n版本,因为p2Pok-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=benzlongsecretrpcport
嗯,我有一些事情我没有得到正确的!有人能帮忙吗?
发布于 2014-04-17 23:49:53
"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,
}起作用了!
https://stackoverflow.com/questions/23140871
复制相似问题