Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use string builder when generating binary param #1458

Merged
merged 1 commit into from
Jul 22, 2021

Conversation

antonydenyer
Copy link
Contributor

What does this PR do?

When generating sources with large contracts the binary can go over the 64k string limit.

Switched to use a string builder instead as per square/javapoet#776

@antonydenyer antonydenyer requested a review from conor10 as a code owner July 21, 2021 12:55
@antonydenyer antonydenyer marked this pull request as draft July 21, 2021 13:11
@antonydenyer antonydenyer force-pushed the master branch 2 times, most recently from 160c963 to 94b94d5 Compare July 21, 2021 13:27
@antonydenyer antonydenyer marked this pull request as ready for review July 21, 2021 14:09
@ricardolyn
Copy link

@conor10 it will be good to merge and release this work as is currently a blocker for Consensys/quorum-acceptance-tests#123. thank you!

@conor10
Copy link
Contributor

conor10 commented Jul 21, 2021

Sure, I'll get one of the team on it.

@mohamedelshami mohamedelshami merged commit 4f34678 into hyperledger-web3j:master Jul 22, 2021
@mohamedelshami
Copy link
Contributor

@antonydenyer @ricardolyn I have done the merge let me know if there is anything that needs to be done here.

As a side note, I was curious about the contract size limit in Quorum, it appears to allow 64kb as opposed to Etheruem EIP 170 (24kb)?

https://ethereum.stackexchange.com/questions/56000/quorum-oversized-data-during-contract-creation-contract-code-size-limit?rq=1

@ricardolyn
Copy link

@mohamedelshami yes, GoQuorum allows to configure the contract dize limit by using this and this configuration on the genesis file.

those values can be configured between 24kb and 128kb. More information on https://docs.goquorum.consensys.net/en/stable/HowTo/Configure/GenesisOptions/#contract-code-size

@ricardolyn
Copy link

ricardolyn commented Aug 10, 2021

@conor10 @mohamedelshami

I updated the version on the plugin: hyperledger-web3j/web3j-maven-plugin#74. could you take a look? thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants