Page 1 of 1

Maximum Transaction Size

Posted: Sun Aug 24, 2014 11:23 am
by phelix
Currently TX size is not explicitly restricted. IIRC it is 100k in Bitcoin.

I wonder whether we should limit it, too, maybe even down to 50k. These large transactions might cause issues, e.g. in regard to transaction caching.

Re: Maximum Transaction Size

Posted: Mon Aug 25, 2014 11:16 pm
by cassini
phelix wrote:IIRC it is 100k in Bitcoin.
Yes, that's right. MAX_STANDARD_TX_SIZE was created with the transition to v0.8.0, see
https://github.com/bitcoin/bitcoin/comm ... fc2bbc4087

Re: Maximum Transaction Size

Posted: Tue Aug 26, 2014 7:39 pm
by phelix

+ // Extremely large transactions with lots of inputs can cost the network
+ // almost as much to process as they cost the sender in fees, because
+ // computing signature hashes is O(ninputs*txsize). Limiting transactions
+ // to MAX_STANDARD_TX_SIZE mitigates CPU exhaustion attacks.