Bitcoin Forum
May 11, 2024, 05:43:52 PM *
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?
1715449432
Hero Member
*
Offline Offline

Posts: 1715449432

View Profile Personal Message (Offline)

Ignore
1715449432
Reply with quote  #2

1715449432
Report to moderator
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715449432
Hero Member
*
Offline Offline

Posts: 1715449432

View Profile Personal Message (Offline)

Ignore
1715449432
Reply with quote  #2

1715449432
Report to moderator
1715449432
Hero Member
*
Offline Offline

Posts: 1715449432

View Profile Personal Message (Offline)

Ignore
1715449432
Reply with quote  #2

1715449432
Report to moderator
1715449432
Hero Member
*
Offline Offline

Posts: 1715449432

View Profile Personal Message (Offline)

Ignore
1715449432
Reply with quote  #2

1715449432
Report to moderator
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!