-
Notifications
You must be signed in to change notification settings - Fork 96
duk_config.h increase RECLIMITs #58
base: v3
Are you sure you want to change the base?
Conversation
There's no risk if the platform provides enough stack. The default limit is a compromise so that on most platforms the limit is reached before one actually runs out of stack (which often leads to a segfault or "abort"). So depending on the platform, one would first ensure there's enough stack if the platform default is too low, and then use Duktape normally with the RECLIMIT increased. |
What platforms do you target with go-ethereum? |
Duktape is only used for transaction tracing, so it currently is only used on fairly beefy machines. Would it be possible somehow to have this configurable via Go, so that you wouldn't need to bump the limits for everybody but still allow "power users" to run with higher limits without having to fork? |
Any update on this? We would prefer to be able to use a vendored dependency of duktape instead of other hacks around it. |
Would also love If that could be reviewed and merged |
Hey any update on this? |
|
Any update on this? |
Hi, @olebedev
As described in this PR when geth calls
JsonEncode
function from your library it fails in case of reaching the DUK_USE_JSON_ENC_RECLIMIT = 1000.So what is the purpose of setting the reclimits of 1000? Are there any risks in increasing them?
Thank you!