PPCoinTalk - PeerCoin (PPC) & PrimeCoin (XPM)
PrimeCoin (XPM) => Mining Primecoin => Topic started by: glassuser on July 16, 2013, 10:05:35 pm
- Hi all,
So this is how I first started, I read on this thread on how to mine,
http://ppcointalk.org/index.php?topic=316.0 (this OP made a great post and I would like to thank him for teaching me)
I went ahead and did further research and a fellow user recommend this new client that mines at a much faster hashrate, around 10 times faster! You can find this thread here:
https://bitcointalk.org/index.php?topic=255782.0
I went ahead and installed it and it did indeed increase my hashrate, currently running at around 2000-3000 primespersec
- That much faster? Wow!
Was it easy to install?
Heck it is going to be later tonight before I get the chance to use it. Darn business and earning a living thing.
Tonight I shall have it installed. ;D
- Yea it is! I couldn't believe it when i first started but its true lol
Yea definitely get that going right away when you get home, let me know when you do
- I am already home and at my business. My business is in Belize Central America.
I already have the faster version downloaded.
What I need is an hour of total quiet to concentrate and give it my full attention. As it is I have employees and customer phone calls and interruptions.
You had no problem getting the original client to work.
However it took me 6 hours to realize I added a space in the wrong place with the first command. I corrected that and the client started to work.
So what is next? Are you going to try mining on the cloud?
I am making notations on my speed with the original client so I will have something to compare it with when I try the new client.
I will let you know.
- oh cool!
I'm over in Miami, Florida. Yea it is good to give it your full attention so you can learn exactly what to do, honestly after you learn it its pretty easy to get it setup.
Yea you need to make sure the commands are correct hehe, I was thinking about mining in the cloud but i want to see how i do with my computers here first, is it profitable doing it in the cloud?
Make notations of your speed so you can see how fast it increases with the new one.
For the installation of the new one, just download the program and replace the primecoin and the primecoind files with the ones in your harddrive, then just restart the program again and put the commands again "setgenerate true -1" and youre set, it might take a little while to pick up, like 5 mins, but after that you are ready.
- Miami is a great place. I like tropical areas. :)
The only reason I mentioned it was because I left the world of commuting long ago.
If I get suck on the new optimization tonight I might ask you for some wisdom.
I do not know if the cloud pays off. But I am looking into it.
- Sunny King mentioned that PPS numbers do not necessarily reflect greater performance. In some of these builds, the people who create them reduced the sieve size to 100,000, which basically means yes you are doing more primepersec, but you are looking for less possible solutions.
On the thread you guys are mentioning, I've been running the HP2 client for a day or two now and it seems to be producing ok. If you really want to stick to something that you know will work, just run the primecoin-qt v.0.1.1 on the official download page.
-
Interesting, thank you. That is good information, craslovell. :)
Since I am doing this for fun and have multiple computers I shall keep the original client on my notebook and then try the optimized build on another computer.
If that works I will do, three computers on the original primecoin-qt v.0.1.1 and three computers on Sunny Ling's optimization.
If it does not work well I can always move back to the original client on all systems.
Sunny King mentioned that PPS numbers do not necessarily reflect greater performance. In some of these builds, the people who create them reduced the sieve size to 100,000, which basically means yes you are doing more primepersec, but you are looking for less possible solutions.
On the thread you guys are mentioning, I've been running the HP2 client for a day or two now and it seems to be producing ok. If you really want to stick to something that you know will work, just run the primecoin-qt v.0.1.1 on the official download page.
-
Sunny King mentioned that PPS numbers do not necessarily reflect greater performance. In some of these builds, the people who create them reduced the sieve size to 100,000, which basically means yes you are doing more primepersec, but you are looking for less possible solutions.
On the thread you guys are mentioning, I've been running the HP2 client for a day or two now and it seems to be producing ok. If you really want to stick to something that you know will work, just run the primecoin-qt v.0.1.1 on the official download page.
Oh really, so you believe the original is the best one then. It seems to make sense what you say.
-
Interesting, thank you. That is good information, craslovell. :)
Since I am doing this for fun and have multiple computers I shall keep the original client on my notebook and then try the optimized build on another computer.
If that works I will do, three computers on the original primecoin-qt v.0.1.1 and three computers on Sunny Ling's optimization.
If it does not work well I can always move back to the original client on all systems.
Sunny King mentioned that PPS numbers do not necessarily reflect greater performance. In some of these builds, the people who create them reduced the sieve size to 100,000, which basically means yes you are doing more primepersec, but you are looking for less possible solutions.
On the thread you guys are mentioning, I've been running the HP2 client for a day or two now and it seems to be producing ok. If you really want to stick to something that you know will work, just run the primecoin-qt v.0.1.1 on the official download page.
So on the 5 computers I have running i was able to mine 12.95 immature prime coins one computer, I'm not sure what that means exactly
- 12.95 immature prime coins!
You have hit pay dirt my friend! ;D
What it means?
I do not have a clue. ;)
However it is great you seem to have got coins!
-
12.95 immature prime coins!
You have hit pay dirt my friend! ;D
What it means?
I do not have a clue. ;)
However it is great you seem to have got coins!
hahah i was reading up on the immature thing, apparently i came up on some fork in the chain, maybe it could be due to the new client?
I just switched 2 comps back on the original client, lets see what happens then
- When you mine a new block of primecoins, they will be "immature" until approximately 3200 more blocks have been mined on the network. The block target is 1 minute for primecoin, so it should literally take about 2 full days for your coins to be available in your balance.
Blocks are being mined faster than the target rate though, due to the amount of solving power on the network, so it's possible it will only be about 12 hours until those coins are available in your balance. At that point you can do whatever you want with them :)
-
When you mine a new block of primecoins, they will be "immature" until approximately 3200 more blocks have been mined on the network. The block target is 1 minute for primecoin, so it should literally take about 2 full days for your coins to be available in your balance.
Blocks are being mined faster than the target rate though, due to the amount of solving power on the network, so it's possible it will only be about 12 hours until those coins are available in your balance. At that point you can do whatever you want with them :)
Ohh awesome, thanks for that, i've mined my first block then :)
I went ahead and switched over some of my computers to run on the original client to see which performs better, the computer that got the 12.95 coins was running on the new client.
Btw, do you know where the wallet.dat is stored in windows?
thanks!
- hey craslovell, i see that you run your own mining pool for primecoin? could you explain more how that works please, I'm interested
-
hey craslovell, i see that you run your own mining pool for primecoin? could you explain more how that works please, I'm interested
Unfortunately no I do not run my own pool, that would be cool though!
The only primecoin pool is what I would consider experimental right now and somewhat untested. I do applaud their efforts in trying to get it working 100% though! My honest opinion would be that you are better off taking your chances solo mining for now until a tried and true method for pool mining is released for primecoin.
As for locating your wallet.dat, click your windows or start button, and in the run/search bar, type %appdata% and hit enter. You should see a primecoin folder in the list after hitting enter, your wallet.dat is stored in that primecoin folder.
Another good way to get your wallet.dat file would be to run a daily backup of your wallet. Open your primecoin wallet, go to File and select Backup Wallet... then choose a name and where you want to save it!
-
hey craslovell, i see that you run your own mining pool for primecoin? could you explain more how that works please, I'm interested
Unfortunately no I do not run my own pool, that would be cool though!
The only primecoin pool is what I would consider experimental right now and somewhat untested. I do applaud their efforts in trying to get it working 100% though! My honest opinion would be that you are better off taking your chances solo mining for now until a tried and true method for pool mining is released for primecoin.
As for locating your wallet.dat, click your windows or start button, and in the run/search bar, type %appdata% and hit enter. You should see a primecoin folder in the list after hitting enter, your wallet.dat is stored in that primecoin folder.
Another good way to get your wallet.dat file would be to run a daily backup of your wallet. Open your primecoin wallet, go to File and select Backup Wallet... then choose a name and where you want to save it!
Oh yea you're right, this is for PPcoin.
I agree with mining, I guess right now solo mining is best since it is new and not many people have started on it, even though primecoin seems to be increasing fast according to the news lately.
Thank you for wallet.dat info, appreciate that, I'll start to do daily backups like you said to be able to locate them easier.
Are you currently mining also? How are your rigs doing?
- Been mining for aprox. 1 hour, no gold yet..
Stats:
(http://img38.imageshack.us/img38/9734/pa69.png)
Specs:
Lenovo Y500
CPU: Intel Core i7 3630QM @ 2.40GHz (HT Enabled)
GPU's: 2x Geforce GT 650m (Waiting for a proper cuda miner)
- That seemed easy.
If I go to help- About Primecoin. is the optimized version Primecoinn v0.1.1.0-unk-beta?
- So ive mined another 12 XPMs with another laptop i have running the new client, so far no primecoins for the laptops running the old client. I recommend the new client right now.
-
Been mining for aprox. 1 hour, no gold yet..
Stats:
(http://img38.imageshack.us/img38/9734/pa69.png)
Specs:
Lenovo Y500
CPU: Intel Core i7 3630QM @ 2.40GHz (HT Enabled)
GPU's: 2x Geforce GT 650m (Waiting for a proper cuda miner)
The primespersec is really high, that is great!
- Just started the optimized version of the client on one of the desktops.
Starting to figure out how I can tweak the performance.
blueoinkhead your primespersec are incredible!.
-
Just started the optimized version of the client on one of the desktops.
Starting to figure out how I can tweak the performance.
blueoinkhead your primespersec are incredible!.
I put one comp to start mining in the ypool.net (http://ypool.net) mining pool, its good to put a couple comps on this to test it out. If you need help setting it up let me know.
-
What is the advantage to pooled mining with Primecoin? Would it take less system resources on my systems?
I can understand it with Bitcoins.
But for Primecoin right now?
I put one comp to start mining in the ypool.net (http://ypool.net) mining pool, its good to put a couple comps on this to test it out. If you need help setting it up let me know.
-
What is the advantage to pooled mining with Primecoin? Would it take less system resources on my systems?
I can understand it with Bitcoins.
But for Primecoin right now?
I put one comp to start mining in the ypool.net (http://ypool.net) mining pool, its good to put a couple comps on this to test it out. If you need help setting it up let me know.
Yea it will take up less resources and you pretty much share the profits with everyone on the pool, but if you can start mining more solo then do that instead. Right now i have the majority running solo and one on the pool.
- I am bringing another system online this weekend.
I will direct one computer at the pool and see how it goes.
Will ask questions if I get stuck.
- I was getting the proper mining info before I synced up with the blockchain but now I'm getting the following error:
Method not found (code -32601)
Anyone else having this problem?
- btcbible, that is what happens when you misspell a command or add an extra space.
- Ah, thank you Eric. I was typing "mininginfo" instead of "getmininginfo"
-
Hey you are doing great.
I spend 6 hours mining and could not figure out why I was at 0 Primes per second.
I screwed up the "Setgenerate true-1" command. ;D
Ah, thank you Eric. I was typing "mininginfo" instead of "getmininginfo"
- We both need to stop drinking so much n00b sauce lol.
- How long would you think it takes to actually find a block at about 1500 PPS?
- I have no idea. But I expect it is more of a random thing.
-
If there is a way to screw up tech things, I will find it. lol
That is okay. I never give up and eventually figure things out.
We both need to stop drinking so much n00b sauce lol.
-
Genuine noob here. Appears that I'm mining, I think;
{
"blocks" : 68611,
"currentblocksize" : 1000,
"currentblocktx" : 0,
"errors" : "",
"generate" : true,
"genproclimit" : -1,
"primespersec" : 294,
"pooledtx" : 0,
"testnet" : false
}
Some questions;
- Is there documentation for the official client? (I had to browse the forums for ages before I could even figure out the 'getmininginfo' console command)
- Do I need a wallet? How do I get one? Or do I already have one by installing the client? If so - what is my wallet address?
- How will I know if I have successfully mined?
Any help appreciated.
- 1) so here is the post from the creator sunny king, https://bitcointalk.org/index.php?topic=255782.0 i guess this is the actual documentation if you want to call it that
2) once you install the client that is the wallet and miner at the same time. To find your wallet address you go to "Receive" and it will show you an address that points to your wallet
3) As long as primespersec is not 0 you are doing it right, sometimes it takes a long time to mine, im mining around a block every 2 days.
- So, I've been mining on two machines now for exactly 1 week solid - and I've found nothing whatsoever!
Everything I read is indicating I should have found something by now - any ideas what's wrong here?! I'm on HP7.
{
"blocks" : 84528,
"chainspermin" : 4,
"currentblocksize" : 1000,
"currentblocktx" : 0,
"difficulty" : 9.27267766,
"errors" : "",
"generate" : true,
"genproclimit" : 3,
"primespersec" : 1766,
"pooledtx" : 0,
"sievepercentage" : 10,
"sievesize" : 1000000,
"testnet" : false
}
-
So, I've been mining on two machines now for exactly 1 week solid - and I've found nothing whatsoever!
Everything I read is indicating I should have found something by now - any ideas what's wrong here?! I'm on HP7.
{
"blocks" : 84528,
"chainspermin" : 4,
"currentblocksize" : 1000,
"currentblocktx" : 0,
"difficulty" : 9.27267766,
"errors" : "",
"generate" : true,
"genproclimit" : 3,
"primespersec" : 1766,
"pooledtx" : 0,
"sievepercentage" : 10,
"sievesize" : 1000000,
"testnet" : false
}
nothing wrong with your setup, but you underestimate the PPS of the network.
I have 6PC running 24/7 and get about 4000 pps... I have been pool mining for the last week or two and earnt 0.6XPM confirmed, 0.7XPM unconfirmed... 2877 shares submitted not found one block for the pool.... so I recommend you point at ypool.net
They very nice pool and helpful devs and the devs are here on the forum so you can ask them questions through here as well.. here is their thread for the pool: http://ppcointalk.org/index.php?topic=408.0
FuzzyBear
- Thanks for the response... I got on ypool about an hour ago and have indeed got about 0.01 XPM... small, but better than the last week of fruitless solo mining!!
These machines are on 24/7 anyway, so it's all free coinage. ;)
-
So for those who want to take advantage of the AWS $100 credit, here's how I picked up 300 XPM over the weekend, while only burning through $35 of the credit. I've been mining on a variety of VPS, physical and virtual hosts for the last few weeks - I wish I'd figured this out when the blocks were easier to mine!
Amazon: https://aws.amazon.com/big-data/powerof60/
It took about 10 minutes for the code to show up for $100 in credit
If you aren't ready to do all of this, don't do it now. Otherwise you'll burn through your credits !!
This does make an assumption that you have a VPS to use as your standard box - I keep a 128MB ServerCrate VPS as my jump box.
Log into amazon, redeem the credit, then go to My Account panel
You want to make sure of the following:
EC2:
Click Key Pairs: Create Key Pair. Download the new pair and DO NOT LOSE IT!
Click Security Group: Create Security Group.
Create a new rule: SSH
Port Range: 22
Source: 0.0.0.0/0 (This means from anywhere)
scp the new .pem to your jump box and 'chmod 600 *.pem' on the key
Launch Instance > Classic Wizard > Amazon Linux AMI 2013.03.1 64-bit version
Create 7 of them of type c1.xlarge (20ECU, 8core), making sure to use the new key pair you just created and the security group you created.
when they are finished being created, copy down the public DNS entry for each host.
ssh to your jump box and edit /etc/hosts. If you don't know how to use nano, there are other tutorials for that.
Add entries for the machines you created on AWS. (I named mine miner1, miner2, etc) Save the file with Crtl+o, then exit. Connect to your new machine with 'ssh -i *.pem ec2-user@miner1' -- you will have to fill in the key name and host name yourself, do not blindly copy this from here and expect it to work.
If all goes well, you should get a prompt to accept the new key from the new box.
If you don't get a prompt, then either your machine isn't ready yet or you are blocked by the sec group. If you aren't savvy enough to fix that, you can do the rest of this by using the java-based client in the browser.
su -c 'yum -y install gcc make autoconf gcc-c++ m4 openssl-devel db4-devel boost-devel'
cd
mkdir -p .primecoin
echo 'server=1
gen=1
rpcallowip=127.0.0.1
rpcuser=primecoinrpc
rpcpassword=SOME_SECURE_PASSWORD
sievesize=1000000' > .primecoin/primecoin.conf
sed -i -e "s/SOME_SECURE_PASSWORD/`< /dev/urandom tr -cd '[:alnum:]' | head -c32`/" .primecoin/primecoin.conf
cd
rm -rf gmp-5.1.2.tar.bz2 gmp-5.1.2
wget http://mirrors.kernel.org/gnu/gmp/gmp-5.1.2.tar.bz2
tar xjvf gmp-5.1.2.tar.bz2
cd gmp-5.1.2
./configure --enable-cxx
make
sudo make install
cd
rm -rf openssl-1.0.1e.tar.gz openssl-1.0.1e
wget ftp://ftp.pca.dfn.de/pub/tools/net/openssl/source/openssl-1.0.1e.tar.gz
tar xzvf openssl-1.0.1e.tar.gz
cd openssl-1.0.1e
./config shared --prefix=/usr/local --libdir=lib
make
sudo make install
cd
rm -rf miniupnpc-1.6.20120509.tar.gz
wget http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.6.20120509.tar.gz -O miniupnpc-1.6.20120509.tar.gz
tar xzvf miniupnpc-1.6.20120509.tar.gz
cd miniupnpc-1.6.20120509
make
sudo INSTALLPREFIX=/usr/local make install
cd
rm -rf primecoin-0.1.1-hp8.tar.bz2 primecoin-0.1.1-hp8
wget http://sourceforge.net/projects/primecoin-hp/files/0.1.1-hp8/primecoin-0.1.1-hp8.tar.bz2/download -O primecoin-0.1.1-hp8.tar.bz2
tar xjvf primecoin-0.1.1-hp8.tar.bz2
cd primecoin-0.1.1-hp8/src
sed -i -e 's/$(OPENSSL_INCLUDE_PATH))/$(OPENSSL_INCLUDE_PATH) \/usr\/local\/include)/' makefile.unix
sed -i -e 's/$(OPENSSL_LIB_PATH))/$(OPENSSL_LIB_PATH) \/usr\/local\/lib)/' makefile.unix
sed -i -e 's/$(LDHARDENING) $(LDFLAGS)/$(LDHARDENING) -Wl,-rpath,\/usr\/local\/lib $(LDFLAGS)/' makefile.unix
make -f makefile.unix BOOST_LIB_SUFFIX=-mt
strip primecoind
sudo cp -f primecoind /usr/local/bin/
primecoind --daemon
echo "alias gmi='primecoind getmininginfo'" >> ~/.bashrc
echo "alias gi='primecoind getinfo'" >> ~/.bashrc
echo "alias la='primecoind listaccounts'" >> ~/.bashrc
echo "alias lt='primecoind listtransactions'" >> ~/.bashrc
echo "alias pps='primecoind getprimespersec'" >> ~/.bashrc
echo "alias gb='primecoind getbalance'" >> ~/.bashrc
echo "alias gt='tail -f ~/.primecoin/debug.log'" >> ~/.bashrc
source ~/.bashrc
Now from your ssh console, you can type pps to show primespersec, gmi to getmininginfo, or open screen and type gt to watch the log.
Each of those is going to generate somewhere in the 4-5000 pps range and cost 0.580/hr to run.
[root@shark ~]# la
{
"" : 23.19000000
}
[root@shark ~]# pps
4454
[root@shark ~]# gmi
{
"blocks" : 87964,
"chainspermin" : 13,
"currentblocksize" : 1191,
"currentblocktx" : 1,
"difficulty" : 9.27267396,
"errors" : "",
"generate" : true,
"genproclimit" : -1,
"roundsievepercentage" : 30,
"primespersec" : 4454,
"pooledtx" : 1,
"sievepercentage" : 10,
"sievesize" : 1000000,
"testnet" : false
}
You now have a mining cluster that can run for a week - At best, you'll see some XPM from it. At worst, you have nothing less than you have now!
Good luck!
- Total Noob here, but trying ever so hard to learn quick!
this is what the cmd prompt is spitting out when i've run jhprimeminer on port 8332..
primes/s: 1436 best difficulty: 4.171054
primes/s: 1832 best difficulty: 3.966857
primes/s: 1768 best difficulty: 3.624665
primes/s: 1122 best difficulty: 3.849262
primes/s: 1006 best difficulty: 4.681544
primes/s: 592 best difficulty: 4.475273
primes/s: 1207 best difficulty: 3.937341
primes/s: 1675 best difficulty: 3.942418
primes/s: 1766 best difficulty: 4.361694
primes/s: 648 best difficulty: 3.907355
primes/s: 1213 best difficulty: 3.954675
primes/s: 976 best difficulty: 3.932220
primes/s: 940 best difficulty: 4.872685
primes/s: 1447 best difficulty: 4.868898
primes/s: 1772 best difficulty: 4.971047
so, does this mean i'm mining? my ypool stats show my worker as 'offline'
when i try to connect on ypool port 10034, i get an error code 0 message..