Bitcoin Forum
May 10, 2024, 05:49:33 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 4 5 »  All
  Print  
Author Topic: [XPM] BFGMiner Prime Branch  (Read 16070 times)
gateway (OP)
Hero Member
*****
Offline Offline

Activity: 552
Merit: 500


View Profile
July 13, 2013, 12:47:55 AM
 #1

So some of us on #eligius-prime with the help of Luke were able to get what we think is bfgminer prime working, how ever the people testing it so far none of us have found a block so a word of caution.

I thought in the spirit of sharing I would let you guys know how I was able to get up and runnning, NOTE you do need to know how to compile BFGMiner, I cannot help you with any compile issues ..

Requirements:
primecoind running

Then

Get the latest code from git..

git clone -b prime https://github.com/luke-jr/bfgminer.git

make this change >> http://pastebin.com/XSTTRNF9 << src/libblkmaker/base58.c around line 120

This allows you to use your primecoin wallet address instead of having to convert that to a btc wallet address.

Once compiled and primecoind is set up and running.. use this command line in bfgminer..

./bfgminer -a prime -S noauto -S cpu:auto -o localhost:9912 -u primecoinrpc -p {rpcpassword} --coinbase-addr {primecoin wallet addr} --debuglog 2>prime.log

you dont need the debug at the end but gives you an idea of data coming though..

THIS is WIP, I would ask anyone to help optmized, fix, or make adjustments..

cheers..

here is my miner running.. no block found yet tho.. we did test it on testnet and it did fine blocks fyi..







1715320173
Hero Member
*
Offline Offline

Posts: 1715320173

View Profile Personal Message (Offline)

Ignore
1715320173
Reply with quote  #2

1715320173
Report to moderator
1715320173
Hero Member
*
Offline Offline

Posts: 1715320173

View Profile Personal Message (Offline)

Ignore
1715320173
Reply with quote  #2

1715320173
Report to moderator
1715320173
Hero Member
*
Offline Offline

Posts: 1715320173

View Profile Personal Message (Offline)

Ignore
1715320173
Reply with quote  #2

1715320173
Report to moderator
The Bitcoin network protocol was designed to be extremely flexible. It can be used to create timed transactions, escrow transactions, multi-signature transactions, etc. The current features of the client only hint at what will be possible in the future.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715320173
Hero Member
*
Offline Offline

Posts: 1715320173

View Profile Personal Message (Offline)

Ignore
1715320173
Reply with quote  #2

1715320173
Report to moderator
1715320173
Hero Member
*
Offline Offline

Posts: 1715320173

View Profile Personal Message (Offline)

Ignore
1715320173
Reply with quote  #2

1715320173
Report to moderator
1715320173
Hero Member
*
Offline Offline

Posts: 1715320173

View Profile Personal Message (Offline)

Ignore
1715320173
Reply with quote  #2

1715320173
Report to moderator
Zalfrin
Sr. Member
****
Offline Offline

Activity: 401
Merit: 250



View Profile
July 13, 2013, 01:08:52 AM
 #2

Thanks, I'll give it a try here in a little bit.
Sunny King
Legendary
*
Offline Offline

Activity: 1205
Merit: 1010



View Profile WWW
July 13, 2013, 01:15:06 AM
 #3

Good job! I will look into API support tomorrow.
gateway (OP)
Hero Member
*****
Offline Offline

Activity: 552
Merit: 500


View Profile
July 13, 2013, 01:28:53 AM
 #4

Good job! I will look into API support tomorrow.

That would be great.

Btw I just relaying the info from most of the people who worked on it Tongue no credit here outside of sharing Smiley
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
July 13, 2013, 02:09:31 AM
 #5

we got currently 2 main problems:
worksize is too small, atm my i7-2700K requests 23k work/s, setting a queue of 512 helps a little but thats it...
GBT bugged (dunno if primecoind or bfgminer), it dosnt know when a new block is found on the network, so it will calculate for exactly 120 seconds and then the 120 seconds --expiry kick in and bfgminer knows about the new blocks therefore missing 15-25 blocks. setting --expiry to 1-5 works tough.

current stage:

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
lishbtc
Full Member
***
Offline Offline

Activity: 184
Merit: 100


View Profile
July 13, 2013, 02:38:32 AM
 #6

Compiled but getting ./bfgminer: -a: unrecognized option - is -a prime the correct syntax as per the OP?

kendog77
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500


View Profile
July 13, 2013, 02:44:17 AM
 #7

You have to enable CPU mining in the configure step.
kendog77
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500


View Profile
July 13, 2013, 02:51:11 AM
 #8

we got currently 2 main problems:
worksize is too small, atm my i7-2700K requests 23k work/s, setting a queue of 512 helps a little but thats it...
GBT bugged (dunno if primecoind or bfgminer), it dosnt know when a new block is found on the network, so it will calculate for exactly 120 seconds and then the 120 seconds --expiry kick in and bfgminer knows about the new blocks therefore missing 15-25 blocks. setting --expiry to 1-5 works tough.

current stage:


I'm experiencing the same problems. There are constant staged work underruns, and new network blocks don't show up in bfgminer until they expire.
lishbtc
Full Member
***
Offline Offline

Activity: 184
Merit: 100


View Profile
July 13, 2013, 02:52:24 AM
 #9

thank you sir, will try that

K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
July 13, 2013, 03:32:38 AM
 #10

more info for sunny, invalidates the GBT things somewhat:
Code:
<Luke-Jr> K1773R: Gateway69: GBT needs *zero* modification on primecoind
<Luke-Jr> although he *could* send a coinbase with it, then --coinbase-addr wouldn't be required
<Luke-Jr> (but that's not as simple as it seems)
<Luke-Jr> if --scan-time and --expiry don't work for solo mining, I'd appreciate if someone could fix it
<Luke-Jr> since that would affect Bitcoin too, I'd need to get it into main bfgminer asap
<K1773R> Luke-Jr: ACK

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
swordfish6975
Hero Member
*****
Offline Offline

Activity: 721
Merit: 523



View Profile WWW
July 13, 2013, 03:43:30 AM
Last edit: July 13, 2013, 04:58:58 AM by swordfish6975
 #11

i compiled it for winblows with that change but no love....

just crashes with "bfgminer.exe has stopped working"

log -> http://pastebin.com/8X17SkFD

edit: win8 x64 amd fx-6100 (6 core)

>>>>  Physical Bitcoin And Altcoin Price Ticker Screen - http://afkdata.com <<<<

                    http://cryptofolio.info  - google finance of cryptos
Joe_Bauers
Hero Member
*****
Offline Offline

Activity: 802
Merit: 1003


GCVMMWH


View Profile
July 13, 2013, 04:16:34 AM
Last edit: July 18, 2013, 02:05:41 PM by Joe_Bauers
 #12

Pretty sweet so far. I'm getting about 400 pps per core on shit old HW.  No blocks yet though...   Undecided
Thanks to Luke and others for their work   Cool
tinnvec
Newbie
*
Offline Offline

Activity: 54
Merit: 0



View Profile
July 13, 2013, 05:05:41 AM
 #13

Perhaps something has changed, but I just cloned the repo and can't find "src/libblkmaker/base58.c"

There is a libblkmaker folder, but it contains nothing
gateway (OP)
Hero Member
*****
Offline Offline

Activity: 552
Merit: 500


View Profile
July 13, 2013, 05:08:30 AM
 #14

Perhaps something has changed, but I just cloned the repo and can't find "src/libblkmaker/base58.c"

There is a libblkmaker folder, but it contains nothing

git clone -b prime

?
swordfish6975
Hero Member
*****
Offline Offline

Activity: 721
Merit: 523



View Profile WWW
July 13, 2013, 05:10:47 AM
 #15

Perhaps something has changed, but I just cloned the repo and can't find "src/libblkmaker/base58.c"

There is a libblkmaker folder, but it contains nothing

git clone -b prime

?

I thought the same thing but it appears in there after running ./autogen.sh

>>>>  Physical Bitcoin And Altcoin Price Ticker Screen - http://afkdata.com <<<<

                    http://cryptofolio.info  - google finance of cryptos
tinnvec
Newbie
*
Offline Offline

Activity: 54
Merit: 0



View Profile
July 13, 2013, 05:13:53 AM
 #16

Perhaps something has changed, but I just cloned the repo and can't find "src/libblkmaker/base58.c"

There is a libblkmaker folder, but it contains nothing

git clone -b prime

?

I thought the same thing but it appears in there after running ./autogen.sh

Thanks! I'm pretty used to using git so I wasn't sure how I'd messed that up. Makes perfect sense now
torbank
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile
July 13, 2013, 05:14:24 AM
 #17

Anyone know why bfgminer is almost always working on blocks that are older than the local primecoind block?
torbank
Full Member
***
Offline Offline

Activity: 217
Merit: 100


View Profile
July 13, 2013, 05:18:54 AM
 #18

By my estimates, both of my miners are working on the current block only about 10% of the time.

Why the delay before bfgminer catches up to primecoind?
paulthetafy
Hero Member
*****
Offline Offline

Activity: 820
Merit: 1000


View Profile
July 13, 2013, 05:32:47 AM
 #19

Can --coinbase-addr be any address you own (like in a main wallet) or does it have to be from the local primecoind accounts?
paulthetafy
Hero Member
*****
Offline Offline

Activity: 820
Merit: 1000


View Profile
July 13, 2013, 06:53:21 AM
 #20

Any update on the staged work underrun issue?  I get it continually, even with a queue of 512-1024 (haven't tested higher).  No found blocks yet on live network
Pages: [1] 2 3 4 5 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!