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.
Maximum Transaction Size
Re: Maximum Transaction Size
Yes, that's right. MAX_STANDARD_TX_SIZE was created with the transition to v0.8.0, seephelix wrote:IIRC it is 100k in Bitcoin.
https://github.com/bitcoin/bitcoin/comm ... fc2bbc4087
Re: Maximum Transaction Size
+ // 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.