Bitcoin Forum
May 28, 2023, 10:54:43 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?
The Bitcoin software, network, and concept is called "Bitcoin" with a capitalized "B". Bitcoin currency units are called "bitcoins" with a lowercase "b" -- this is often abbreviated BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1685271283
Hero Member
*
Offline Offline

Posts: 1685271283

View Profile Personal Message (Offline)

Ignore
1685271283
Reply with quote  #2

1685271283
Report to moderator
1685271283
Hero Member
*
Offline Offline

Posts: 1685271283

View Profile Personal Message (Offline)

Ignore
1685271283
Reply with quote  #2

1685271283
Report to moderator
1685271283
Hero Member
*
Offline Offline

Posts: 1685271283

View Profile Personal Message (Offline)

Ignore
1685271283
Reply with quote  #2

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