Author

Topic: Is there a limit on the max number of inputs and outputs in a transaction? (Read 2238 times)

donator
Activity: 1218
Merit: 1080
Gerald Davis
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.
kjj
legendary
Activity: 1302
Merit: 1026
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.
donator
Activity: 1218
Merit: 1080
Gerald Davis
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.
rme
hero member
Activity: 756
Merit: 504
Yes, currently one transaction cannot be more than 1MB.
Thats the limit.  Wink
donator
Activity: 1218
Merit: 1080
Gerald Davis
Title says it all....

Is there a limit on the max number of inputs and outputs in a transaction?
Jump to: