Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Added Genesis file support for specifying the maximum stack size. #1431

Merged
merged 1 commit into from
May 13, 2019

Conversation

rojotek
Copy link
Member

@rojotek rojotek commented May 10, 2019

Added Genesis file support for specifying the maximum stack size, useful for private networks.

@rojotek rojotek requested a review from ajsutton May 10, 2019 21:15
Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Override
public OptionalInt getStackSizeLimit() {
return configRoot.containsKey("configstacksizelimit")
? OptionalInt.of(configRoot.getInteger("configstacksizelimit"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised this is configstacksizelimit instead of just stacksizelimit or maybe even evmstacksizelimit.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now reads as:

getEvmStackSize() and
"evmstacksize"

@@ -176,7 +176,7 @@
MESSAGE_CALL,
}

private static final int MAX_STACK_SIZE = 1024;
public static final int MAX_STACK_SIZE = 1024;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Rename to DEFAULT_MAX_STACK_SIZE

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@rojotek rojotek force-pushed the make-stack-size-configurable branch 4 times, most recently from 0d6fa1e to 4743dd6 Compare May 13, 2019 08:47
@rojotek rojotek force-pushed the make-stack-size-configurable branch from 4743dd6 to de87aa6 Compare May 13, 2019 09:07
@rojotek rojotek merged commit fac5fa6 into PegaSysEng:master May 13, 2019
@rojotek rojotek deleted the make-stack-size-configurable branch May 13, 2019 11:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants