Bitcoin Forum
January 21, 2019, 05:02:56 PM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
   Home   Help Search Login Register More  
Pages: [1]
Author Topic: What is the reasoning behind setting MAX_SCRIPT_ELEMENT_SIZE to 520?  (Read 296 times)
Offline Offline

Activity: 1
Merit: 0

View Profile
August 09, 2017, 07:23:17 AM

In script.h of the current Bitcoin Core client, the maximum size of an element which can be pushed on to the stack during script execution is specified to be 520? It was apparently changed from 5000 to 520 in the commit

I can imagine the limit is there to prevent some DoS attacks. Why the magic number 520?
Pages: [1]
Jump to: is not available or authorized for sale. Do not believe any fake listings.
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!