Bitcoin Forum
September 27, 2018, 11:13:07 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Is there a limit on the max number of inputs and outputs in a transaction?  (Read 2112 times)
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1005


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?
1538089987
Hero Member
*
Offline Offline

Posts: 1538089987

View Profile Personal Message (Offline)

Ignore
1538089987
Reply with quote  #2

1538089987
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
rme
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500



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

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

Activity: 1218
Merit: 1005


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: 1001



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
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1005


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!