Bitcoin Forum
May 11, 2024, 07:45:19 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need Help on clarifying Coinbase transaction:  (Read 746 times)
Gol (OP)
Newbie
*
Offline Offline

Activity: 47
Merit: 0


View Profile
April 02, 2014, 06:59:48 PM
Last edit: April 03, 2014, 11:07:49 AM by Gol
 #1

Hello all.
i did some reading here:
https://en.bitcoin.it/wiki/Protocol_specification.
came across:
"A special kind of transaction, called a coinbase transaction, has no inputs. It is created by miners, and there is one coinbase transaction per block. Because each block comes with a reward of newly created Bitcoins (e.g. 50 BTC for the first 210,000 blocks), the first transaction of a block is, with few exceptions, the transaction that grants those coins..."

any info about: "few exceptions" will be much appreciated.

Cheers,
Gol.
1715456719
Hero Member
*
Offline Offline

Posts: 1715456719

View Profile Personal Message (Offline)

Ignore
1715456719
Reply with quote  #2

1715456719
Report to moderator
Even if you use Bitcoin through Tor, the way transactions are handled by the network makes anonymity difficult to achieve. Do not expect your transactions to be anonymous unless you really know what you're doing.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715456719
Hero Member
*
Offline Offline

Posts: 1715456719

View Profile Personal Message (Offline)

Ignore
1715456719
Reply with quote  #2

1715456719
Report to moderator
1715456719
Hero Member
*
Offline Offline

Posts: 1715456719

View Profile Personal Message (Offline)

Ignore
1715456719
Reply with quote  #2

1715456719
Report to moderator
Gol (OP)
Newbie
*
Offline Offline

Activity: 47
Merit: 0


View Profile
April 03, 2014, 04:56:14 PM
 #2

bump...
Altoidnerd
Sr. Member
****
Offline Offline

Activity: 406
Merit: 251


http://altoidnerd.com


View Profile WWW
April 04, 2014, 04:33:35 AM
Last edit: April 04, 2014, 05:39:26 AM by Altoidnerd
 #3

Well, now we have to find if there are any blocks whose first tx is not the coinbase.

blockexplorer.com/b/0

blockexplorer.com/b/1

python

Code:
from urllib2 import Request, urlopen, URLError

prompt = '>>'

print "Enter block height"

height = raw_input(prompt)

key = 'http://blockexplorer.com/b/%s' % height

request = Request(key)

try:
response = urlopen(request)
block_data = response.read()
print block_data
except URLError, e:
    print 'whoops', e

mmm need to iterate the block height.  but first im going to figure out how to check if the coinbase is the first tx in a given block.  

Do you even mine?
http://altoidnerd.com 
12gKRdrz7yy7erg5apUvSRGemypTUvBRuJ
Gol (OP)
Newbie
*
Offline Offline

Activity: 47
Merit: 0


View Profile
April 04, 2014, 05:46:59 AM
 #4

not sure i understand...is there a situation that the first tx is NOT coinbase?
Altoidnerd
Sr. Member
****
Offline Offline

Activity: 406
Merit: 251


http://altoidnerd.com


View Profile WWW
April 04, 2014, 06:16:57 AM
 #5

I don't know that's why I want to crawl the blockchain to find out.

Do you even mine?
http://altoidnerd.com 
12gKRdrz7yy7erg5apUvSRGemypTUvBRuJ
accape
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
April 04, 2014, 09:46:03 AM
 #6

You won't find such blocks because Bitcoin Core rejects all blocks whose first transaction is anything else but the coinbase transaction (src/main.cpp line 2300).
Altoidnerd
Sr. Member
****
Offline Offline

Activity: 406
Merit: 251


http://altoidnerd.com


View Profile WWW
April 04, 2014, 07:24:03 PM
 #7

So the wiki can be edited.

Do you even mine?
http://altoidnerd.com 
12gKRdrz7yy7erg5apUvSRGemypTUvBRuJ
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!