Bitcoin Forum
April 23, 2019, 10:58:56 PM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: PHP майнер GETWORK что дальше ???  (Read 1581 times)
lordfantom
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?
1556060336
Hero Member
*
Offline Offline

Posts: 1556060336

View Profile Personal Message (Offline)

Ignore
1556060336
Reply with quote  #2

1556060336
Report to moderator
1556060336
Hero Member
*
Offline Offline

Posts: 1556060336

View Profile Personal Message (Offline)

Ignore
1556060336
Reply with quote  #2

1556060336
Report to moderator
1556060336
Hero Member
*
Offline Offline

Posts: 1556060336

View Profile Personal Message (Offline)

Ignore
1556060336
Reply with quote  #2

1556060336
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1556060336
Hero Member
*
Offline Offline

Posts: 1556060336

View Profile Personal Message (Offline)

Ignore
1556060336
Reply with quote  #2

1556060336
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
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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!