Bitcoin Forum
May 17, 2024, 05:30:30 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: block mined by Eligius  (Read 1232 times)
p2pbucks (OP)
Hero Member
*****
Offline Offline

Activity: 642
Merit: 500


Evolution is the only way to survive


View Profile
August 13, 2014, 03:03:00 AM
 #1

Hi guys ,

I want to know how to figure out whether a block is mined by Eligius . I can find known pools by pay out address on https://raw.githubusercontent.com/blockchain/Blockchain-Known-Pools/master/pools.json .

Code:
 curl -l https://raw.githubusercontent.com/blockchain/Blockchain-Known-Pools/master/pools.json |sed 'N;s/{\n//'| grep $(./bitcoind getbestblockhash | xargs -i ./bitcoind getblock {} | sed -n '/"tx"/{n;s/"|,//g;p}' | xargs -i ./bitcoind getrawtransaction {} | xargs -i ./bitcoind decoderawtransaction {} | sed -n '/"addresses"/{n;s/"|,//g;p}' )

But it seems Eligius newly generated coins are distributed to many different addresses . So how to determine a new block is mined by Eligius ?
Any ideas ? thanks Smiley
amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


View Profile
August 13, 2014, 04:05:40 AM
 #2

There is no way to determine who have mined the block.

Try the following (pseudocode):

if ( memstr ( coinbaseTx.scriptSig, "Eligius" ) ) // looks for string in byte array
  printf ( "possibly mined by Eliguis" );
else
  printf ( "mined by somebody else or Luke-Jr changed the software" )

See also
https://github.com/blockchain/Blockchain-Known-Pools/blob/master/pools.json
  
p2pbucks (OP)
Hero Member
*****
Offline Offline

Activity: 642
Merit: 500


Evolution is the only way to survive


View Profile
August 15, 2014, 02:12:01 AM
 #3

There is no way to determine who have mined the block.

Try the following (pseudocode):

"Eligius" in coinbase scriptsig? OK , i will try . thanks for the answer Smiley
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!