Bitcoin Forum
September 22, 2023, 07:48:19 PM *
News: Latest Bitcoin Core release: 25.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: PHP майнер GETWORK что дальше ???  (Read 1634 times)
lordfantom (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
February 22, 2013, 02:24:49 AM
 #1

<?
  require_once 'jsonRPCClient.php';
 
  $bitcoin = new jsonRPCClient('http://login:pass@pool-us.50btc.com:8332/');
 
echo "<pre>\n";
 
 $data=$bitcoin->getwork(); echo "\n";
 //print_r($data);
 echo "DATA IS:", $data['data'], "\n";
 echo "HASH1 IS:", $data['hash1'], "\n";
 echo "MIDSTATE IS:", $data['midstate'], "\n";
 echo "TARGET IS:", $data['target'], "\n";

echo "</pre>";
  ?>

Получил GETWORK что дальше Huh?
1695412099
Hero Member
*
Offline Offline

Posts: 1695412099

View Profile Personal Message (Offline)

Ignore
1695412099
Reply with quote  #2

1695412099
Report to moderator
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1695412099
Hero Member
*
Offline Offline

Posts: 1695412099

View Profile Personal Message (Offline)

Ignore
1695412099
Reply with quote  #2

1695412099
Report to moderator
1695412099
Hero Member
*
Offline Offline

Posts: 1695412099

View Profile Personal Message (Offline)

Ignore
1695412099
Reply with quote  #2

1695412099
Report to moderator
1695412099
Hero Member
*
Offline Offline

Posts: 1695412099

View Profile Personal Message (Offline)

Ignore
1695412099
Reply with quote  #2

1695412099
Report to moderator
hirsch
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
February 22, 2013, 03:31:53 PM
 #2

а смысл? на cpu его считать?)) да оно умрёт уткнувшись в время ограничение выполнение скрипта)
а сформировать задание для opencl на php не получится.
можно на питоне попробовать, там есть модуль pyopencl, но и для доступа к устройству (если оно есть Smiley нужны соответствующие привилегии.
lordfantom (OP)
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
February 25, 2013, 02:37:13 AM
 #3

Это так для понимания , смотрел исходник на Perl
упростил до невозможности ))) считает 50 килохэшей )))  Grin
Pages: [1]
  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!