Bitcoin Forum
October 20, 2021, 02:20:07 PM *
News: Latest Bitcoin Core release: 22.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: extraNonce  (Read 998 times)
Taras
Legendary
*
Offline Offline

Activity: 1386
Merit: 1042


Please do not PM me loan requests!


View Profile WWW
March 08, 2014, 11:29:43 PM
 #1

Is there a way to view the extraNonce value of a generation tx? Huh
1634739607
Hero Member
*
Offline Offline

Posts: 1634739607

View Profile Personal Message (Offline)

Ignore
1634739607
Reply with quote  #2

1634739607
Report to moderator
1634739607
Hero Member
*
Offline Offline

Posts: 1634739607

View Profile Personal Message (Offline)

Ignore
1634739607
Reply with quote  #2

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

Posts: 1634739607

View Profile Personal Message (Offline)

Ignore
1634739607
Reply with quote  #2

1634739607
Report to moderator
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1003

Reverse engineer from time to time


View Profile
March 08, 2014, 11:41:09 PM
 #2

In the reference client, the coinbase is like so

pblock->vtx[0].vin[0].scriptSig = (CScript() << nHeight << CBigNum(nExtraNonce)) + COINBASE_FLAGS;

so after nheight comes extranonce, but sadly doesn't seem to be like that from bigger pools.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
Taras
Legendary
*
Offline Offline

Activity: 1386
Merit: 1042


Please do not PM me loan requests!


View Profile WWW
March 08, 2014, 11:56:01 PM
 #3

Here are the coinbases of the first few blocks:

0 04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e2062726 96e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73
1 04ffff001d0104
2 04ffff001d010b
3 04ffff001d010e
4 04ffff001d011a
5 04ffff001d0120


That would mean the extraNonce values are:

0 4
1 4
2 11
3 14
4 26
5 32

Fantastic thank you thank you Cheesy
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1862
Merit: 1003

Reverse engineer from time to time


View Profile
March 08, 2014, 11:56:48 PM
 #4

They don't seem to be there for newer blocks. The last block is/was 46b49 in hex, tried looking for it in little or big-endian format, no dice.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
Taras
Legendary
*
Offline Offline

Activity: 1386
Merit: 1042


Please do not PM me loan requests!


View Profile WWW
March 09, 2014, 12:23:56 AM
 #5

I only needed up to block 36,000; I have the data Smiley

I'm looking for patterns in early mining.
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!