Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Sergio_Demian_Lerner on February 19, 2013, 03:25:42 AM



Title: Why blocks txn_count is always zero in response to getheaders
Post by: Sergio_Demian_Lerner on February 19, 2013, 03:25:42 AM
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.


Title: Re: Why blocks txn_count is always zero in response to getheaders
Post by: gmaxwell on February 19, 2013, 03:50:21 AM
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.


Title: Re: Why blocks txn_count is always zero in response to getheaders
Post by: Sergio_Demian_Lerner on February 19, 2013, 04:29:24 AM
Ohh I see, txn_count is not included in the PoW hash computation...