Bitcoin Forum
February 05, 2023, 09:56:31 AM *
News: Latest Bitcoin Core release: 24.0.1 [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?
1675590991
Hero Member
*
Offline Offline

Posts: 1675590991

View Profile Personal Message (Offline)

Ignore
1675590991
Reply with quote  #2

1675590991
Report to moderator
1675590991
Hero Member
*
Offline Offline

Posts: 1675590991

View Profile Personal Message (Offline)

Ignore
1675590991
Reply with quote  #2

1675590991
Report to moderator
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1675590991
Hero Member
*
Offline Offline

Posts: 1675590991

View Profile Personal Message (Offline)

Ignore
1675590991
Reply with quote  #2

1675590991
Report to moderator
1675590991
Hero Member
*
Offline Offline

Posts: 1675590991

View Profile Personal Message (Offline)

Ignore
1675590991
Reply with quote  #2

1675590991
Report to moderator
1675590991
Hero Member
*
Offline Offline

Posts: 1675590991

View Profile Personal Message (Offline)

Ignore
1675590991
Reply with quote  #2

1675590991
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!