How do I open 8341 port up?
Server.json
{
# network ports
"listen" : [
# binary protocol (default), port 8342
{ "port" : 8342 },
# HTTP JSON-RPC protocol, port 8341
{ "port" : 8341, "protocol" : "http-json" },
# HTTP JSON-RPC protocol, port 8344,
#proxy is most likely your external ip address if your running a public pool | Public pools WON'T have the following ip addresses: (10.0.0.1, 127.0.0.1, 192.168.1.100, or 192.168.254.254,etc,etc)
# requests to us | "proxy" should be set to your ip address that people will connect through
{ "port" : 8344, "protocol" : "http-json",
"proxy" : "192.168.1.11" },
# binary protocol, localhost-only port 8339
# host is most likely your localhost address
{ "host" : "127.0.0.1", "port" : 8338, "protocol" : "binary" }
],
# database settings
"database" : {
"engine" : "mysql",
"host" : "localhost",
"port" : 3306,
#database name
"name" : "pushpool",
#database username
"username" : "mysqladmin",
#database password
"password" : "xxxxxxxx",
#enable sharelog | to insert share data or sometimes known as "work"
"sharelog" : true,
"stmt.pwdb":"SELECT password FROM pool_worker WHERE username = ?",
"stmt.sharelog":"INSERT INTO shares (rem_host, username, our_result, upstream_result, reason, solution) VALUES (?, ?, ?, ?, ?, ?)"
},
#uncoment this when you want to use memcached (Recommended for servers over 1.5gb of ram)
# cache settings
"memcached" : {
"servers" : [
{ "host" : "127.0.0.1", "port" : 11211 }
]
},
"pid" : "/home/bitcoinminer2/POOLINSTALL/pushpool-0.5/pushpoold.pid",
# overrides local hostname detection
"forcehost" : "localhost.localdomain",
"log.requests" : "/home/bitcoinminer2/POOLINSTALL/pushpool-0.5/request.log",
"log.shares" : "/home/bitcoinminer2/POOLINSTALL/pushpool-0.5/shares.log",
# the server assumes longpolling (w/ SIGUSR1 called for each blk)
"longpoll.disable" : false,
# length of time to cache username/password credentials, in seconds
"auth.cred_cache.expire" : 75,
# RPC settings
#Bitcoind Protocal settings
#Host were bitcoind can be found on the network
"rpc.url" : "http://127.0.0.1:9098/",
#Username & password to connect to bitcoind
"rpc.user" : "user",
"rpc.pass" : "pass",
# rewrite returned 'target' to difficulty-1?
"rpc.target.rewrite" : true
}
bitcoind.conf
rpcuser=user
rpcpassword=pass
rpcport=9098
server=1
gen=0
rpcallowip=*
commands
memcached -u bitcoinminer2
./bitcoind -server -daemon
./pushpoold -E
Output
bitcoinminer2@ubuntu:~/POOLINSTALL/pushpool-0.5$
[2011-06-25 14:35:43.004276] Listening on host :: port 8342
[2011-06-25 14:35:43.004627] Listening on host :: port 8341
[2011-06-25 14:35:43.004749] Listening on host :: port 8344
[2011-06-25 14:35:43.004859] Listening on host 127.0.0.1 port 8338
Phoenix settings
start /DC:\Phoenix phoenix.exe -u http://NH2LwYuL585o6sgiikAG42sbmAhGwj8Vsd:[email protected]:8338/;askrate=10 -k poclbm VECTORS BFI_INT AGGRESSION=11 WORKSIZE=128 DEVICE=0 FASTLOOP=false
Mysql Commands
sudo /etc/init.d/mysql start
mysql -u root -p
use pushpool
Mysql Output
mysql> SELECT * FROM pool_worker;
+----+------------------+------------------------------------+----------+
| id | associatedUserId | username | password |
+----+------------------+------------------------------------+----------+
| 1 | 0 | NH2LwYuL585o6sgiikAG42sbmAhGwj8Vsd | pass |
+----+------------------+------------------------------------+----------+
1 row in set (0.01 sec)
mysql> SELECT * FROM shares;
Empty set (0.00 sec)
mysql>
Has bitcoind downloaded all of the blockchain yet? ./bitcoind getblockcount (should be around 133,297 right now)
Is bitcoind running? ps aux | grep bitcoind
Have you opened up the ports on your machine so that you can access port 8341 from the external miner?
Well where do you host your server?
Usually you need to open it in your firewall like iptables or something.
Or perhaps you need to contact your web host.
On amazon ec2 it's as simple as adding it to your security group you are working with.
Can anybody else comment on FpgaMiner's complaints earlier? Because I am noticing the same thing...
I got it setup, and accepting shares against a bitcoin --testnet client setup correctly with RPC. So, everything appeared to work. I even found a few blocks, and those submitted fine.
However, at a difficulty of 38, and >1000 shares, it had only found 2 blocks. That's either really bad luck, or something was broken.
So I tried pointing the miners at bitcoind directly, and they found 3 blocks in a few minutes (as expected for the hashrate).
I have 300Mhash/s aimed at my pushpool server and I can see that my miners are connected and working. The "shares" MySQL table is increasing steadily.
The bitcoind client is running in testnet mode.
blkmond blkmond.conf is running
I have only found 1 block (I have just 1 Y in my "upstream_result" MySQL Column for my worker) after mining for about 60 minutes at 700Mhash/s.
According to our favorite website http://www.alloscomp.com/bitcoin/calculator.php ... 700MHash/s at a difficulty level of 45 I should be finding 15,645.98 BTC per day. Or about 312 blocks of 50 BTC per day or about 13 blocks per hour. Is there something wrong with my math? Why have I only found 1 block so far?
What are "shares" anyways? Are they not simply difficulty 1 proofs? If the difficulty level is at 45 then theoretically shouldn't I find a block every 45 shares created? There are 1200 shares sitting in my MySQL DB so if that was true then I should have about 26 blocks by now, no?