Author

Topic: Number of transactions in getblocktemplate output? (Read 711 times)

legendary
Activity: 1596
Merit: 1100
September 18, 2013, 08:01:56 AM
#2
Why getblock and getblocktemplate are reporting different transactions count?

For example, http://blockexplorer.com/block/00000000000000071ff9019ce6bd5150ed4828e6724e9ee86206168901fd3f30
getblock prints 652 txs.
getblocktemplate prints 319 only.

They perform two vastly different operations.

getblock returns a block minted in the past.  getblocktemplate returns a block to be minted in the future.

newbie
Activity: 4
Merit: 0
Why getblock and getblocktemplate are reporting different transactions count?

For example, http://blockexplorer.com/block/00000000000000071ff9019ce6bd5150ed4828e6724e9ee86206168901fd3f30
getblock prints 652 txs.
getblocktemplate prints 319 only.

The same is for all blocks I've check.

Is it because getblocktemplate filters txs on some criteria?
Jump to: