Bitcoin Forum
May 21, 2024, 06:05:17 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Number of transactions in getblocktemplate output?  (Read 692 times)
agp80 (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
September 18, 2013, 09:03:05 AM
 #1

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?
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1091


View Profile
September 18, 2013, 01:01:56 PM
 #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.


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
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!