ethereum / wiki

The Ethereum Wiki
https://www.ethereum.org
14.75k stars 2.57k forks source link

Design Rationale: Is the description of a stack size limit correct? #559

Closed takenobu-hs closed 6 years ago

takenobu-hs commented 6 years ago

In "Design Rational", it is stated that Not having a stack size limit as follows.

Not having a stack size limit - no particular justification either way; note that limits are not strictly necessary in many cases as the combination of gas costs and a block-level gas limit will always act as a ceiling on the consumption of every resource.

However, yellowpaper and geth implementation states that the data stack size is limited to 1024.

Does the description of "Design Rational" outdated? Or, does "Design Rational" describe future specifications?

Please see also related discussion.

jamesray1 commented 6 years ago

I'm pretty sure 1024 is correct as the stack size limit, this has been edited with https://github.com/ethereum/wiki/wiki/Design-Rationale/e17115948eca8d04c3982ed6965ac821a40e798d.

jamesray1 commented 6 years ago

Note also: Please see https://github.com/ethereum/wiki/wiki#issues-and-pull-requests for why this was closed.

jamesray1 commented 6 years ago

@pirapira, FYI.

takenobu-hs commented 6 years ago

Thank you very much for the explanation.