Bitcoin Forum
April 27, 2024, 12:24:02 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is there a limit on the max number of inputs and outputs in a transaction?  (Read 2203 times)
DeathAndTaxes (OP)
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
July 02, 2013, 08:20:35 AM
 #1

Title says it all....

Is there a limit on the max number of inputs and outputs in a transaction?
You can see the statistics of your reports to moderators on the "Report to moderator" pages.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714177442
Hero Member
*
Offline Offline

Posts: 1714177442

View Profile Personal Message (Offline)

Ignore
1714177442
Reply with quote  #2

1714177442
Report to moderator
rme
Hero Member
*****
Offline Offline

Activity: 756
Merit: 504



View Profile
July 02, 2013, 08:21:27 AM
 #2

Yes, currently one transaction cannot be more than 1MB.
Thats the limit.  Wink
DeathAndTaxes (OP)
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
July 02, 2013, 08:55:48 AM
 #3

Gotcha.  Also remember since 0.8.2 any tx over 100KB is non-standard but other than total tx size limit there is no restriction on the # of inputs or outputs.

Given an input is ~150 bytes a say 400 input tx and it would still be valid and standard if total tx size is under 100KB.
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1024



View Profile
July 02, 2013, 12:15:46 PM
 #4

There is also a far less practical limit.  The number of items in the input and output lists are specified using varint values, which max out at 264-1.

It is obviously difficult to imagine situations where that limit will matter, but it is the only limit that applies directly.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
DeathAndTaxes (OP)
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
July 02, 2013, 03:54:08 PM
 #5

There is also a far less practical limit.  The number of items in the input and output lists are specified using varint values, which max out at 264-1.

It is obviously difficult to imagine situations where that limit will matter, but it is the only limit that applies directly.

Ah good point although I agree it is unlikely that limit will be a practical one.
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!