Bitcoin Forum
September 04, 2025, 08:33:39 PM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 [25] 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 »
  Print  
Author Topic: python OpenCL bitcoin miner  (Read 1239563 times)
Mahkul
Sr. Member
****
Offline Offline

Activity: 434
Merit: 251


Every saint has a past. Every sinner has a future.


View Profile
February 16, 2011, 11:12:04 PM
 #481

Would it be hard to get the miner to send an email message everytime the block was accepted?

The easiest would be to specify a program to be executed, when a block/share is accepted.

Then you can write a script / batch file to send an email, play a sound, send an SMS, whatever.

I know, the script is not a problem - but where in the code do I add it (and how Smiley)?
Raulo
Full Member
***
Offline Offline

Activity: 238
Merit: 100


View Profile
February 16, 2011, 11:34:48 PM
 #482

I know, the script is not a problem - but where in the code do I add it (and how Smiley)?

At the top of BitcoinMiner.py  add
Code:
import.os
Near
Code:
def blockFound(self, hash, accepted):
add
Code:
def sendmail(self):                                                                                                                                                     
                os.system("./your_mailing_script")
In
Code:
def blockFound(self, hash, accepted):
add
Code:
                self.sendmail()

The script will run if the block is either accepted or invalid/stale but the latter is also important to know. You can add hash and or date to the arguments. Remember than in Python indentation matters.

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
Mahkul
Sr. Member
****
Offline Offline

Activity: 434
Merit: 251


Every saint has a past. Every sinner has a future.


View Profile
February 16, 2011, 11:50:31 PM
 #483

I know, the script is not a problem - but where in the code do I add it (and how Smiley)?

At the top of BitcoinMiner.py  add
Code:
import.os
Near
Code:
def blockFound(self, hash, accepted):
add
Code:
def sendmail(self):                                                                                                                                                     
                os.system("./your_mailing_script")
In
Code:
def blockFound(self, hash, accepted):
add
Code:
                self.sendmail()

The script will run if the block is either accepted or invalid/stale but the latter is also important to know. You can add hash and or date to the arguments. Remember than in Python indentation matters.

The next time I get an email you're getting some coins!
geebus
Sr. Member
****
Offline Offline

Activity: 258
Merit: 250



View Profile WWW
February 17, 2011, 07:27:14 AM
 #484

I know, the script is not a problem - but where in the code do I add it (and how Smiley)?

At the top of BitcoinMiner.py  add
Code:
import.os
Near
Code:
def blockFound(self, hash, accepted):
add
Code:
def sendmail(self):                                                                                                                                                     
                os.system("./your_mailing_script")
In
Code:
def blockFound(self, hash, accepted):
add
Code:
                self.sendmail()

The script will run if the block is either accepted or invalid/stale but the latter is also important to know. You can add hash and or date to the arguments. Remember than in Python indentation matters.

The next time I get an email you're getting some coins!

Under the following code you can also add a bit of filtering to not send email (or whatever you have it doing) by changing it from:
Code:
def blockFound(self, hash, accepted):

To:
Code:
def blockFound(self, hash, accepted, pct):
if accepted:
self.sendmail()

That way it's only valid, accepted shares/blocks that trigger an email.

Feel like donating to me? BTC Address: 14eUVSgBSzLpHXGAfbN9BojXTWvTb91SHJ
pantherx12
Full Member
***
Offline Offline

Activity: 322
Merit: 100


The All-in-One Cryptocurrency Exchange


View Profile
February 17, 2011, 07:33:47 PM
 #485

Hello folks was hoping for a little help setting up.

I tried to follow the instructions how ever I found them to be about as useful as being punched in the face.


Firstly how do I "browse" using command prompt, typing a directory does nothing at all.



I'm curious, could this of not been done with an automated .exe?


「   B e a x y   」   THE ALL-IN-ONE CRYPTOCURRENCY EXCHANGE
[ WHITEPAPER ]              Instant Deposit                   24/7 Support                    Referral Program              [ LIGHTPAPER ]
ANN THREAD     ●     BOUNTY THREAD     ●     FACEBOOK     ●   TWITTER     ●     TELEGRAM
xenon481
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250



View Profile
February 17, 2011, 07:38:19 PM
 #486

Firstly how do I "browse" using command prompt, typing a directory does nothing at all.

http://www.lsi.upc.edu/~robert/teaching/foninf/doshelp.html

Tips Appreciated: 171TQ2wJg7bxj2q68VNibU75YZB22b7ZDr
pantherx12
Full Member
***
Offline Offline

Activity: 322
Merit: 100


The All-in-One Cryptocurrency Exchange


View Profile
February 17, 2011, 07:41:15 PM
 #487

Ahhh well that also helped not at all.



Typing


E> cd program files does not change the directory to program files.


nor does typing


E

or

E cd program files

or cd program file

or cd e.

etc etc.

( basically tried each possible variation)


I can how ever change to my C drive and browse through that fine and dandy.

So seams theirs some sort of protection on my OS drive ( 64gb falcon II by g-skill)

any ideas? Probably just need to dissable something first.

「   B e a x y   」   THE ALL-IN-ONE CRYPTOCURRENCY EXCHANGE
[ WHITEPAPER ]              Instant Deposit                   24/7 Support                    Referral Program              [ LIGHTPAPER ]
ANN THREAD     ●     BOUNTY THREAD     ●     FACEBOOK     ●   TWITTER     ●     TELEGRAM
Ricochet
Sr. Member
****
Offline Offline

Activity: 373
Merit: 250



View Profile
February 17, 2011, 07:49:21 PM
 #488

Use "dir" to show the current directory listing.  Any file name with spaces MUST be enclosed in quotation marks, for instance:
cd "Program Files"

"cd .." moves you up one level in the folder hierarchy.  "cd \" returns you to the root of the current drive (in your case, E:\)

Use tab-completion to let the console automatically complete file and folder names for you.  Start typing the first few letters and hit Tab (if it gets the wrong one, keep hitting Tab a few more times).  Tab completion will add quotation marks automatically if necessary.

To switch between drives (C:\ and E:\ for instance) simply type the drive letter and a colon and hit Enter.

EDIT:  If you want an easy way to open a command window already pointed to the folder you want, there are a few options.  In Vista and Windows 7, hold Shift as you right-click a folder and click the "open command window here" option.  In Windows XP, the same can be accomplished by a tiny program called Drop To Dos, available at http://tinyapps.org/file.html

Alternatively, you can create a batch file (standard text file with a file extension of .bat instead of .txt) consisting of nothing but "@%comspec%" without the quotes.  I personally call it "00startcmd.bat" so it will appear at the top of a list when sorted alphabetically, but the name is entirely up to you.  When double-clicked, it will open a command window pointed to whatever folder the batch file is in.
pantherx12
Full Member
***
Offline Offline

Activity: 322
Merit: 100


The All-in-One Cryptocurrency Exchange


View Profile
February 17, 2011, 07:54:08 PM
 #489

Thanks for help guys.

A new poster at techpowerup helped already sorted things for me now.

Told me to drag the .exe onto command prompt.

Much easier.

「   B e a x y   」   THE ALL-IN-ONE CRYPTOCURRENCY EXCHANGE
[ WHITEPAPER ]              Instant Deposit                   24/7 Support                    Referral Program              [ LIGHTPAPER ]
ANN THREAD     ●     BOUNTY THREAD     ●     FACEBOOK     ●   TWITTER     ●     TELEGRAM
Matt Corallo
Hero Member
*****
Offline Offline

Activity: 755
Merit: 515


View Profile
February 17, 2011, 08:20:07 PM
 #490

Just to inform you, m0m, there is a project (called http://www.compute4cash.com/ which uses your miner only working on their server without any information about bitcoin or any reference to it or your program).  Then taking around 50%.
I know your the miner is Public Domain, but I just wanted to inform you, and potentially tell anyone on the forum that if they see reference to compute4cash, it is really just a ripoff bitcoin pool.

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
pantherx12
Full Member
***
Offline Offline

Activity: 322
Merit: 100


The All-in-One Cryptocurrency Exchange


View Profile
February 17, 2011, 10:53:30 PM
 #491

Now I have a differnt problem.

When I try to apply the -server to bitcoin.exe it tells me to set up rpcpassword.

Only problem is, I already have.

In two different ways.

( via command prompt and via creating text file)

「   B e a x y   」   THE ALL-IN-ONE CRYPTOCURRENCY EXCHANGE
[ WHITEPAPER ]              Instant Deposit                   24/7 Support                    Referral Program              [ LIGHTPAPER ]
ANN THREAD     ●     BOUNTY THREAD     ●     FACEBOOK     ●   TWITTER     ●     TELEGRAM
bitk
Newbie
*
Offline Offline

Activity: 25
Merit: 0


View Profile
February 18, 2011, 01:59:51 AM
 #492

Just to inform you, m0m, there is a project (called http://www.compute4cash.com/ which uses your miner only working on their server without any information about bitcoin or any reference to it or your program).  Then taking around 50%.
I know your the miner is Public Domain, but I just wanted to inform you, and potentially tell anyone on the forum that if they see reference to compute4cash, it is really just a ripoff bitcoin pool.

Nice find!
Nonlin
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
February 18, 2011, 04:32:56 AM
 #493

Running an Asus Matrix ROG 5870 with out the line --f 5.

Is it necessary? What does it do exactly?

YinCoin YangCoin ☯☯First Ever POS/POW Alternator! Multipool! ☯ ☯ http://yinyangpool.com/ 
https://bitcointalk.org/index.php?topic=623937
Bwincoin - 100% Free POS. BCHDNAdVqdQVYH3GdzY3eXF61jsQ91WHBQ
Compute4Cash
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
February 18, 2011, 06:25:30 AM
Last edit: February 18, 2011, 07:14:15 AM by Compute4Cash
 #494

@BlueMatt - The Compute4Cash client is not poclbm.  It is based on the same kernel, with a minor modification, but the Compute4Cash client is an original C++ program.  Compute4Cash offers a different kind of service than Bitcoin pools do so please stop comparing Compute4Cash to Bitcoin pools and concluding that Compute4Cash is a ripoff - you are not comparing apples to apples and we do not appreciate your slander.
praxeologist
Member
**
Offline Offline

Activity: 91
Merit: 10



View Profile
February 18, 2011, 07:15:19 AM
 #495

Spoken like a true scam artist. Actually, I don't care or think what you are doing is wrong per se, just don't get mad when we exposed your operation.

Grinder
Legendary
*
Offline Offline

Activity: 1284
Merit: 1001


View Profile
February 18, 2011, 09:11:26 AM
 #496

The programmer(s) of the C4C client may have taken inspiration from poclbm, but it's clearly not written in Python, so it's not a copy of it. It's also much less efficient. I tried running it, and the load on my card bounces between 80 and 95%. With poclbm it stays at a constant 99%.
Compute4Cash
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
February 18, 2011, 09:23:08 AM
 #497

Compute4Cash is no more a scam than Bitcoin, and Bitcoin is certainly not a scam either.  Please refrain from slandering the Compute4Cash name - it really isn't necessary nor is it called for.

While of course we are not happy with the the orchestrated efforts to 'expose' Compute4Cash, we knew it was only a matter of time before this happened and we are not mad about it.  What does bother us however are the comments that essentially claim that Compute4Cash is screwing people over.  Yes, there are other alternatives to Compute4Cash that should yield higher profits for users, but Compute4Cash offers additional value over what the alternatives provide, and there is of course a premium to be paid for that.  Some may believe that this 'premium' is too high right now, but that only applies for right now.  Things are constantly changing and we expect to adjust our premium to be more reasonable in the near future, and we also expect that as the Bitcoin system and markets continue to grow and adjust themselves that this will also bring our premium to a more reasonable level.

Another thing that bothers us is the attempt to persuade our users to jump ship - one thing that Compute4Cash has done very differently from other alternatives is that we have engaged in paid-for advertising to grow our user base.  We have paid a substantial amount of money to share this opportunity with other people, knowing also that at some point in the future this would equate to advertising for Bitcoin and getting more people involved.  We therefore have invested in each and every user we have, so in a sense when you tell people to leave Compute4Cash you are running off with a portion of our investment.  If it weren't for our advertising efforts very few, if any, of our users would be aware of Bitcoin or making money in this way right now - that alone justifies not only a premium over the <10% profit margin of other pools, but it also justifies our expectation of being treated with decency.
Compute4Cash
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
February 18, 2011, 09:27:03 AM
 #498

@Grinder - the Compute4Cash client has a few auto-adjusting performance parameters that take a few minutes to settle down.  Once settled at full throttle it should mostly stay around 98%-99% if you are not doing anything else with your computer.
m0mchil (OP)
Full Member
***
Offline Offline

Activity: 171
Merit: 127


View Profile
February 18, 2011, 10:08:18 AM
 #499

I have nothing against Compute4Cash.

Please just make a separate thread to promote it.

Thanks

alikim
Member
**
Offline Offline

Activity: 80
Merit: 11


View Profile
February 18, 2011, 12:58:53 PM
 #500

I got this error, not sure if it's the connection problem or a program bug:

18/02/2011 23:54:48, Unexpected error:
Traceback (most recent call last):
  File "BitcoinMiner.pyc", line 210, in mine
  File "BitcoinMiner.pyc", line 187, in getwork
  File "httplib.pyc", line 974, in getresponse
  File "httplib.pyc", line 391, in begin
  File "httplib.pyc", line 355, in _read_status
BadStatusLine
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 [25] 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 »
  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!