Bitcoin Forum
December 29, 2025, 10:35:51 PM *
News: Latest Bitcoin Core release: 30.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 1239737 times)
OCedHrt
Member
**
Offline Offline

Activity: 111
Merit: 10


View Profile
July 20, 2011, 12:14:53 AM
 #1001

Does the current git run?

Code:
Traceback (most recent call last):
  File "C:\Users\Michael Hsu\Desktop\m0mchil-poclbm-1b5ec3e\HttpTransport.py", l
ine 45, in loop
    self.queue_work(work)
  File "C:\Users\Michael Hsu\Desktop\m0mchil-poclbm-1b5ec3e\Transport.py", line
122, in queue_work
    self.process(work)
  File "C:\Users\Michael Hsu\Desktop\m0mchil-poclbm-1b5ec3e\Transport.py", line
81, in process
    self.set_difficulty(work.difficulty)
  File "C:\Users\Michael Hsu\Desktop\m0mchil-poclbm-1b5ec3e\Transport.py", line
76, in set_difficulty
    self.true_target = np.array(unpack('IIIIIIII', true_target.decode('hex')), d
type=np.uint32)
  File "c:\Python27\lib\encodings\hex_codec.py", line 42, in hex_decode
    output = binascii.a2b_hex(input)
TypeError: Odd-length string

ALL.ME  ●●●  SOCIAL NETWORK OF THE BLOCKCHAIN TIME ●●●
▄▄▄▬▬▄▄▄  Bounty all.me ▶ Jan 29th - May 8th 2018  ▄▄▄▬▬▄▄▄
Facebook   ▲   Twitter   ▲   Telegram
Luke-Jr
Legendary
*
Offline Offline

Activity: 2604
Merit: 1196



View Profile
July 20, 2011, 12:42:18 AM
 #1002

Does the current git run?
Try reading the post right above yours?

nebiki
Sr. Member
****
Offline Offline

Activity: 742
Merit: 250



View Profile
July 20, 2011, 03:35:38 AM
 #1003

It prints newlines on every hash rate update when run in lxterminal (linuxcoin).  

Anyone experience the same?  Know why?

EDIT: was told this is because of the width of the terminal window.  There is some extra whitespace after the hash rate text which wraps around to form blank lines if the the terminal window isn't wide enough.

so how did you fix it? i want a clean command prompt @ windows Sad

THE BEST IN SPACE
AUTO-COMPOUNDING DEFI 3.0
PROTOCOL ON BSC
▀█▄▄▄                                                                      ▄▄▄█▀
▀██
████▄▄▄                                                          ▄▄▄██████▀
▀▀███
██████▄▄▄                                              ▄▄▄█████████▀▀
▀▀████
████████▄▄▄                                ▄▄▄████████████▀▀
▀████████████████▄ ▄▄                  ▄▄ ▄████████████████▀
████████████████████▄▄          ▄▄████████████████████
▀█████████████████████        █████████████████████▀
▀████
███████████████▌      ▐███████████████
████▀
▀▀█████████
██████████████████
█████████▀▀
▀████████████████████████████████▀

▀███████████████████████████▀

▀██
█████ ███    ███ ███████▀
▀▀███   ██    ██   ███▀▀
5 0 1 , 6 5 2 %   A P Y
|    TWITTER    |   TELEGRAM   |    DISCORD    |
█▀▀▀▀▀











█▄▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
JOIN NOW
.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀▀█











▄▄▄▄▄█
LehmanSister
Member
**
Offline Offline

Activity: 68
Merit: 10


High Desert Dweller-Where Space and Time Meet $


View Profile
July 20, 2011, 04:00:44 AM
 #1004

Latest poclbm mainline breaks with the new difficulty!

Bugfix: http://gitorious.org/~Luke-Jr/bitcoin/luke-jrs-poclbm/commit/7fdc508a1070f5540046f2d7649eed15503177ad
To merge:
Code:
git fetch https://git.gitorious.org/~Luke-Jr/bitcoin/luke-jrs-poclbm.git bugfix_difficulty_error && git merge FETCH_HEAD

If this saves you time and money, consider dropping me some bitcoin Smiley 1AgqndFUg2sDSxW8NbzPyHvUibW6FHqQeA

Once again, Luke Jr. saves the day.

Here's the patch for the actually curious:
Code:
--- a/Transport.py
+++ b/Transport.py
@@ -62,7 +62,7 @@ class Transport(object):

        def set_difficulty(self, difficulty):
                self.difficulty = difficulty
-               bits = '%08x' % (difficulty,)
+               bits = hex(difficulty)
                bits = bits[2:len(bits) - 1]
                bits = ''.join(list(chunks(bits, 2))[::-1])
                true_target = hex(int(bits[2:], 16) * 2 ** (8 * (int(bits[:2], 16) - 3)))

ISO: small island nations with large native populations excited to pay tribute to flying gods, will trade BTC.
OCedHrt
Member
**
Offline Offline

Activity: 111
Merit: 10


View Profile
July 20, 2011, 05:03:33 AM
 #1005


Didn't click through Smiley

But, shouldn't also:

-        bits = bits[2:len(bits) - 1]

In that case? This is to remove the 0x and L.

ALL.ME  ●●●  SOCIAL NETWORK OF THE BLOCKCHAIN TIME ●●●
▄▄▄▬▬▄▄▄  Bounty all.me ▶ Jan 29th - May 8th 2018  ▄▄▄▬▬▄▄▄
Facebook   ▲   Twitter   ▲   Telegram
Luke-Jr
Legendary
*
Offline Offline

Activity: 2604
Merit: 1196



View Profile
July 20, 2011, 05:37:50 AM
 #1006


Didn't click through Smiley

But, shouldn't also:

-        bits = bits[2:len(bits) - 1]

In that case? This is to remove the 0x and L.
Good catch, also sanitized the code immediately following it and repushed...

bitcoindaddy
Hero Member
*****
Offline Offline

Activity: 481
Merit: 500


View Profile
July 20, 2011, 05:22:15 PM
 #1007

Latest poclbm mainline breaks with the new difficulty!

Bugfix: http://gitorious.org/~Luke-Jr/bitcoin/luke-jrs-poclbm/commit/7fdc508a1070f5540046f2d7649eed15503177ad
To merge:
Code:
git fetch https://git.gitorious.org/~Luke-Jr/bitcoin/luke-jrs-poclbm.git bugfix_difficulty_error && git merge FETCH_HEAD

If this saves you time and money, consider dropping me some bitcoin Smiley 1AgqndFUg2sDSxW8NbzPyHvUibW6FHqQeA

Luke-Jr, what is the comand if you are just starting out fresh with your special poclbm and you don't already have it? (I'm no git expert). Does it depend on the normal poclbm (does that need to be installed first)?
Luke-Jr
Legendary
*
Offline Offline

Activity: 2604
Merit: 1196



View Profile
July 20, 2011, 05:51:13 PM
 #1008

Latest poclbm mainline breaks with the new difficulty!

Bugfix: http://gitorious.org/~Luke-Jr/bitcoin/luke-jrs-poclbm/commit/7fdc508a1070f5540046f2d7649eed15503177ad
To merge:
Code:
git fetch https://git.gitorious.org/~Luke-Jr/bitcoin/luke-jrs-poclbm.git bugfix_difficulty_error && git merge FETCH_HEAD

If this saves you time and money, consider dropping me some bitcoin Smiley 1AgqndFUg2sDSxW8NbzPyHvUibW6FHqQeA

Luke-Jr, what is the comand if you are just starting out fresh with your special poclbm and you don't already have it? (I'm no git expert). Does it depend on the normal poclbm (does that need to be installed first)?
Code:
git clone git://github.com/m0mchil/poclbm.git && cd poclbm && git fetch https://git.gitorious.org/~Luke-Jr/bitcoin/luke-jrs-poclbm.git bugfix_difficulty_error && git merge FETCH_HEAD

ivank2139
Newbie
*
Offline Offline

Activity: 27
Merit: 0


View Profile
July 21, 2011, 04:32:53 AM
 #1009

Latest poclbm mainline breaks with the new difficulty!

Bugfix: http://gitorious.org/~Luke-Jr/bitcoin/luke-jrs-poclbm/commit/7fdc508a1070f5540046f2d7649eed15503177ad
To merge:
Code:
git fetch https://git.gitorious.org/~Luke-Jr/bitcoin/luke-jrs-poclbm.git bugfix_difficulty_error && git merge FETCH_HEAD

If this saves you time and money, consider dropping me some bitcoin Smiley 1AgqndFUg2sDSxW8NbzPyHvUibW6FHqQeA

This fix worked for me and got me back to mining at full complement.  I sent you some bitcoins.  thanks.
NickW
Newbie
*
Offline Offline

Activity: 27
Merit: 0


View Profile
July 24, 2011, 12:01:08 AM
 #1010

The current version is great, but could we get more significant figures on the stale share percentage please? I know I can easily put in to a calculator myself, but it would be nice to see straight away rather then seeing 0% most of the time Smiley.

Keep up the good work though.
bitcoindaddy
Hero Member
*****
Offline Offline

Activity: 481
Merit: 500


View Profile
July 24, 2011, 12:14:27 PM
 #1011

The newest version already shows percentage out to the thousandth's place. 

pit.deepbit.net:8332 [321.472 MH/s (~305 MH/s)] [Rej: 8/2430 (0.33%)]           
zubatej
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
July 26, 2011, 06:27:36 PM
 #1012

Switching to backup pools fails because of variable name mismatch. Rename either all occurences of backup_server_index to backup_pool_index or other way around. Can be done by
Code:
sed -i 's/backup_server_index/backup_pool_index/' Transport.py
Luke-Jr
Legendary
*
Offline Offline

Activity: 2604
Merit: 1196



View Profile
July 29, 2011, 03:27:58 AM
 #1013

Here's a new bugfix: http://tinyurl.com/3qo2j3o
Synopsis: Don't turn off X-Roll-Ntime just because the work submit doesn't include the header.
(it really should associate it to the specific work, but this is good enough)

BOARBEAR
Member
**
Offline Offline

Activity: 77
Merit: 10


View Profile
July 29, 2011, 09:38:39 PM
 #1014

Here's a new bugfix: http://tinyurl.com/3qo2j3o
Synopsis: Don't turn off X-Roll-Ntime just because the work submit doesn't include the header.
(it really should associate it to the specific work, but this is good enough)
can you make a mod that works with http://forum.bitcoin.org/index.php?topic=7964.0
it is a faster kernel
super6
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
July 30, 2011, 03:52:46 PM
 #1015

I'm getting "poclbm.exe has stopped working" errors in guiminer. Will this patch fix it and how do I go about doing that in windows?
Luke-Jr
Legendary
*
Offline Offline

Activity: 2604
Merit: 1196



View Profile
July 30, 2011, 09:12:12 PM
 #1016

The following branches are stable for merging to mainline:
  • bugfix_workspecific_rollntime -- Don't disable rollntime if the header is missing on share submissions (only on new work)
  • extensions_header -- Send X-Mining-Extensions and X-Mining-Hashrate headers
  • logformat -- Split off log-style printing into a separate --logformat option
  • efficiency -- Display work efficiency (accepted shares / works)
  • submit_retry -- Retry submitting works after network errors

The above are all merged into my branch named combo.

I also have a extended_timeout branch that people with poor network connectivity can merge to get a more reliable mining experience. This one is not part of combo, and probably not suitable for merging to mainline.

To pull any of the above, run:
Code:
git fetch git://gitorious.org/~Luke-Jr/bitcoin/luke-jrs-poclbm.git PutBranchNameHere && git merge FETCH_HEAD

coblee
Donator
Legendary
*
Offline Offline

Activity: 1654
Merit: 1365


Creator of Litecoin. Cryptocurrency enthusiast.


View Profile
July 31, 2011, 06:19:56 AM
 #1017

m0mchil, can you make it such that rate is not force to be 60 when verbose is set? I'd like to keep rate at 1 with verbose turned on.

tenzor
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
August 02, 2011, 10:00:17 AM
 #1018

Code:
ats@ats-desktop:~/poclbm$ ./poclbm.py -v -d1 http://l_0:[email protected]:8332
01/08/2011 16:02:22, Setting server (l_0 @ deepbit.net:8332)
deepbit.net:8332 01/08/2011 16:02:23, Unexpected error:
Traceback (most recent call last):
  File "/home/ats/poclbm/HttpTransport.py", line 45, in loop
    self.queue_work(work)
  File "/home/ats/poclbm/Transport.py", line 115, in queue_work
    self.process(work)
  File "/home/ats/poclbm/Transport.py", line 74, in process
    self.set_difficulty(work.difficulty)
  File "/home/ats/poclbm/Transport.py", line 67, in set_difficulty
    true_target = '%064x' % (int(bits[2:], 16) * 2 ** (8 * (int(bits[:2], 16) - 3)),)
ValueError: invalid literal for int() with base 16: 'eefa1-1'
deepbit.net:8332 01/08/2011 16:02:23, LP connected to deepbit.net:8332
deepbit.net:8332 [268.906 MH/s (~0 MH/s)] [Rej: 0/0 (0.00%)]^C

mining works but no share submitted.

repost from russian newbie thread https://asktom.cf/index.php?topic=33432.0
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1286


May Bitcoin be touched by his Noodly Appendage


View Profile
August 02, 2011, 03:13:57 PM
 #1019

Code:
ats@ats-desktop:~/poclbm$ ./poclbm.py -v -d1 http://l_0:[email protected]:8332
01/08/2011 16:02:22, Setting server (l_0 @ deepbit.net:8332)
deepbit.net:8332 01/08/2011 16:02:23, Unexpected error:
Traceback (most recent call last):
  File "/home/ats/poclbm/HttpTransport.py", line 45, in loop
    self.queue_work(work)
  File "/home/ats/poclbm/Transport.py", line 115, in queue_work
    self.process(work)
  File "/home/ats/poclbm/Transport.py", line 74, in process
    self.set_difficulty(work.difficulty)
  File "/home/ats/poclbm/Transport.py", line 67, in set_difficulty
    true_target = '%064x' % (int(bits[2:], 16) * 2 ** (8 * (int(bits[:2], 16) - 3)),)
ValueError: invalid literal for int() with base 16: 'eefa1-1'
deepbit.net:8332 01/08/2011 16:02:23, LP connected to deepbit.net:8332
deepbit.net:8332 [268.906 MH/s (~0 MH/s)] [Rej: 0/0 (0.00%)]^C

mining works but no share submitted.

repost from russian newbie thread https://asktom.cf/index.php?topic=33432.0
Same here

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
hugolp
Legendary
*
Offline Offline

Activity: 1148
Merit: 1001


Radix-The Decentralized Finance Protocol


View Profile
August 04, 2011, 08:02:55 AM
Last edit: August 04, 2011, 08:30:43 AM by hugolp
 #1020

Im using the version from git (updated two days ago) and I am getting miners stuck once a day at least. The program gets stuck at the screen saying that there has been an rpc connection problem( "Problems communicating with bitcoin RPC 0 2"), and it does nothing after that. Even Ctrl+C does not stop the program.


               ▄████████▄
               ██▀▀▀▀▀▀▀▀
              ██▀
             ███
▄▄▄▄▄       ███
██████     ███
    ▀██▄  ▄██
     ▀██▄▄██▀
       ████▀
        ▀█▀
The Radix DeFi Protocol is
R A D I X

███████████████████████████████████

The Decentralized

Finance Protocol
Scalable
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀██
██                   ██
██                   ██
████████████████     ██
██            ██     ██
██            ██     ██
██▄▄▄▄▄▄      ██     ██
██▀▀▀▀██      ██     ██
██    ██      ██     
██    ██      ██
███████████████████████

███
Secure
      ▄▄▄▄▄
    █████████
   ██▀     ▀██
  ███       ███

▄▄███▄▄▄▄▄▄▄███▄▄
██▀▀▀▀▀▀▀▀▀▀▀▀▀██
██             ██
██             ██
██             ██
██             ██
██             ██
██    ███████████

███
Community Driven
      ▄█   ▄▄
      ██ ██████▄▄
      ▀▀▄█▀   ▀▀██▄
     ▄▄ ██       ▀███▄▄██
    ██ ██▀          ▀▀██▀
    ██ ██▄            ██
   ██ ██████▄▄       ██▀
  ▄██       ▀██▄     ██
  ██▀         ▀███▄▄██▀
 ▄██             ▀▀▀▀
 ██▀
▄██
▄▄
██
███▄
▀███▄
 ▀███▄
  ▀████
    ████
     ████▄
      ▀███▄
       ▀███▄
        ▀████
          ███
           ██
           ▀▀

███
Radix is using our significant technology
innovations to be the first layer 1 protocol
specifically built to serve the rapidly growing DeFi.
Radix is the future of DeFi
█████████████████████████████████████

   ▄▄█████
  ▄████▀▀▀
  █████
█████████▀
▀▀█████▀▀
  ████
  ████
  ████

Facebook

███

             ▄▄
       ▄▄▄█████
  ▄▄▄███▀▀▄███
▀▀███▀ ▄██████
    █ ███████
     ██▀▀▀███
           ▀▀

Telegram

███

▄      ▄███▄▄
██▄▄▄ ██████▀
████████████
 ██████████▀
   ███████▀
 ▄█████▀▀

Twitter

██████

...Get Tokens...
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!