Maximum Transaction Size

Post Reply
phelix
Posts: 1634
Joined: Thu Aug 18, 2011 6:59 am

Maximum Transaction Size

Post 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.
nx.bit - some namecoin stats
nf.bit - shortcut to this forum

cassini
Posts: 336
Joined: Sun May 26, 2013 6:36 pm

Re: Maximum Transaction Size

Post 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

phelix
Posts: 1634
Joined: Thu Aug 18, 2011 6:59 am

Re: Maximum Transaction Size

Post 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.
nx.bit - some namecoin stats
nf.bit - shortcut to this forum

Post Reply