Bitcoin Forum
May 14, 2024, 05:17:29 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Why blocks txn_count is always zero in response to getheaders  (Read 627 times)
Sergio_Demian_Lerner (OP)
Hero Member
*****
expert
Offline Offline

Activity: 552
Merit: 629


View Profile WWW
February 19, 2013, 03:25:42 AM
 #1

The wiki https://en.bitcoin.it/wiki/Protocol_specification#Block_Headers says that in response to getheaders, nodes send block headers with the field  txn_count set to zero. The code seems to agree.

Wouldn't be a lot more helpful if the returned headers contained the correct txn_count field so receivers could validate the block PoW before requesting the full block?

Thanks, Sergio.
1715663849
Hero Member
*
Offline Offline

Posts: 1715663849

View Profile Personal Message (Offline)

Ignore
1715663849
Reply with quote  #2

1715663849
Report to moderator
1715663849
Hero Member
*
Offline Offline

Posts: 1715663849

View Profile Personal Message (Offline)

Ignore
1715663849
Reply with quote  #2

1715663849
Report to moderator
In order to achieve higher forum ranks, you need both activity points and merit points.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715663849
Hero Member
*
Offline Offline

Posts: 1715663849

View Profile Personal Message (Offline)

Ignore
1715663849
Reply with quote  #2

1715663849
Report to moderator
1715663849
Hero Member
*
Offline Offline

Posts: 1715663849

View Profile Personal Message (Offline)

Ignore
1715663849
Reply with quote  #2

1715663849
Report to moderator
1715663849
Hero Member
*
Offline Offline

Posts: 1715663849

View Profile Personal Message (Offline)

Ignore
1715663849
Reply with quote  #2

1715663849
Report to moderator
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4172
Merit: 8420



View Profile WWW
February 19, 2013, 03:50:21 AM
 #2

Wouldn't be a lot more helpful if the returned headers contained the correct txn_count field so receivers could validate the block PoW before requesting the full block?
This doesn't have anything to do with the POW.
Sergio_Demian_Lerner (OP)
Hero Member
*****
expert
Offline Offline

Activity: 552
Merit: 629


View Profile WWW
February 19, 2013, 04:29:24 AM
 #3

Ohh I see, txn_count is not included in the PoW hash computation...
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!