Main Menu

Mining on Linux instructions?

Started by rando, November 04, 2013, 09:05:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rando

Quote from: rando on November 05, 2013, 09:10:00 AM
Quote from: bytemaster on November 05, 2013, 09:03:12 AM
    "blocks" : 38,


Which is now... 80.   There are 5x as many people mining as we expected so far.

Oh. I meant how many I have found.
I found it.

./protosharesd getbalance

shows how many protoshares your miner has generated

rando

Quote from: bytemaster on November 05, 2013, 09:03:12 AM
    "blocks" : 38,


Which is now... 80.   There are 5x as many people mining as we expected so far.

Oh. I meant how many I have found.

smith88

Quote from: FreeTrade on November 05, 2013, 08:48:09 AM
Quote from: bsamjolake on November 05, 2013, 08:31:26 AM
all my cores are maxed out, but is there any way to verify it's mining correctly?

hashespermin in getmininginfo shows 0 and the hashespersec command also shows 0

And is there any way to find out how many blocks you've found other than checking your balance?

./protosharesd getmininginfo
{
    "blocks" : 38,
    "currentblocksize" : 1000,
    "currentblocktx" : 0,
    "difficulty" : 0.00000095,
    "errors" : "",
    "generate" : true,
    "genproclimit" : -1,
    "hashespermin" : 0,
    "pooledtx" : 0,
    "testnet" : false
}

./protosharesd gethashespersec
0

P.S. I love the idea of ProtoShares and BitShares

Yes, this should work, but takes 4 or 5 minutes before it reports figures.

find a block yet? i've been running (from hashespermin) sum of 14.5 or so. no block yet. hah keep digging. :)
PTS:  Pv5uGw6APp4UweLE8J1piqWM2i5xFGUHij
BTC:  1B2vsiqJhh5W1mrfJNcC4Zu2kWG3mWzJft

Amazon

I have some difficulty importing a private key. I am sure the private key is correct. QT gives me error.
Forum Donation: PforumPLfVQXTi4QpQqKwoChXHkoHcxGuA

bytemaster

    "blocks" : 38,


Which is now... 80.   There are 5x as many people mining as we expected so far.
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

rando

Which part says how many blocks we've found? currentblocktx? (I'm assuming because it's zero  :))

FreeTrade

Quote from: bsamjolake on November 05, 2013, 08:31:26 AM
all my cores are maxed out, but is there any way to verify it's mining correctly?

hashespermin in getmininginfo shows 0 and the hashespersec command also shows 0

And is there any way to find out how many blocks you've found other than checking your balance?

./protosharesd getmininginfo
{
    "blocks" : 38,
    "currentblocksize" : 1000,
    "currentblocktx" : 0,
    "difficulty" : 0.00000095,
    "errors" : "",
    "generate" : true,
    "genproclimit" : -1,
    "hashespermin" : 0,
    "pooledtx" : 0,
    "testnet" : false
}

./protosharesd gethashespersec
0

P.S. I love the idea of ProtoShares and BitShares

Yes, this should work, but takes 4 or 5 minutes before it reports figures.
"People should be more sophisticated? How are you gonna get that done?" - Jerry Seinfeld reply to Bill Maher

bytemaster

Quote from: bsamjolake on November 05, 2013, 08:31:26 AM
all my cores are maxed out, but is there any way to verify it's mining correctly?

hashespermin in getmininginfo shows 0 and the hashespersec command also shows 0

And is there any way to find out how many blocks you've found other than checking your balance?

./protosharesd getmininginfo
{
    "blocks" : 38,
    "currentblocksize" : 1000,
    "currentblocktx" : 0,
    "difficulty" : 0.00000095,
    "errors" : "",
    "generate" : true,
    "genproclimit" : -1,
    "hashespermin" : 0,
    "pooledtx" : 0,
    "testnet" : false
}

./protosharesd gethashespersec
0

P.S. I love the idea of ProtoShares and BitShares

There are known bugs in reporting mining performance...  I am checking with FreeTrade about getting those bugs fixed.   If your CPUs are pegged then it is working.

We currently have 159+ connections on the network at one of our seed nodes.
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

bsamjolake

all my cores are maxed out, but is there any way to verify it's mining correctly?

hashespermin in getmininginfo shows 0 and the hashespersec command also shows 0

And is there any way to find out how many blocks you've found other than checking your balance?

./protosharesd getmininginfo
{
    "blocks" : 38,
    "currentblocksize" : 1000,
    "currentblocktx" : 0,
    "difficulty" : 0.00000095,
    "errors" : "",
    "generate" : true,
    "genproclimit" : -1,
    "hashespermin" : 0,
    "pooledtx" : 0,
    "testnet" : false
}

./protosharesd gethashespersec
0

P.S. I love the idea of ProtoShares and BitShares

rando

#21
Whoa. CPU shot way up to 100%. I'd say it's working now. Thank you.

Is there a command to view the hash rate?
EDIT: The new post below me answers it: ./protosharesd -gethashpersec

bytemaster

you need to pass the -gen argument to run from the command line.
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

rando

How do you know if it's working? I pulled down the new code and ran the make process again, but when I run ./protosharesd, there is no output. Checking top, shows:

0.7% CPU   5.2 MEMORY protosharesd

Is it working?


yago

#18
Got this error:
protosharesd: src/main.cpp:1810: bool SetBestChain(CValidationState&, CBlockIndex*): Assertion `pfork != __null' failed.

EDIT: Now it works. Done: git clone, qmake protsharesd.pro and make again
[url="http://bitsharestalk.org/donate.html"]http://bitsharestalk.org/donate.html[/url]  <---- Donate to the BitShares Forum ----> PforumPLfVQXTi4QpQqKwoChXHkoHcxGuA

smith88

Quote from: bytemaster on November 05, 2013, 01:04:02 AM
The only thing I can vouch for is protsharesd.pro  using qmake. 

Mining will not work unless you can connect to a network so it is hard to do a speed test :).

I will post a benchmark tool for everyone here in a bit :)

Thank you for all the hard work! I've compiled everything, looks great. Minus benchmark tool... :)
Staying up late here, fun times.
PTS:  Pv5uGw6APp4UweLE8J1piqWM2i5xFGUHij
BTC:  1B2vsiqJhh5W1mrfJNcC4Zu2kWG3mWzJft

rando

In case anyone in the future also encounters this error... If you're trying to compile on a 512mb vps to try it out, it will probably fail because not enough memory. You can add swap space to get past that error:

sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo mkswap /swapfile
sudo swapon /swapfile