Author

Topic: Why blocks txn_count is always zero in response to getheaders (Read 621 times)

hero member
Activity: 555
Merit: 654
Ohh I see, txn_count is not included in the PoW hash computation...
staff
Activity: 4242
Merit: 8672
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.
hero member
Activity: 555
Merit: 654
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.
Jump to: