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

Unreal big gas consumption for contract deploying #1819

Closed
AlexeyBarsuk opened this issue Mar 24, 2017 · 9 comments
Closed

Unreal big gas consumption for contract deploying #1819

AlexeyBarsuk opened this issue Mar 24, 2017 · 9 comments
Labels
waiting for more input Issues waiting for more input by the reporter

Comments

@AlexeyBarsuk
Copy link

The problem is described at http://ethereum.stackexchange.com/questions/13469/unreal-big-gas-consumption-for-contract-deploying

@chriseth
Copy link
Contributor

Added a comment with a request for the actual source code at the point of the gas consumption jump. Also, it might be better to not use web3.eth.compile but using the javascript compiler directly.

@chriseth chriseth added the waiting for more input Issues waiting for more input by the reporter label Mar 27, 2017
@AlexeyBarsuk
Copy link
Author

code here pastebin.com/4NvTJ8Pv
compiled code: pastebin.com/2rSxAKkc

@chriseth
Copy link
Contributor

I was not able to reproduce that with http://remix.ethereum.io - perhaps it is some kind of overflow in the gas counter of the node you are using? Which one is it?

@AlexeyBarsuk
Copy link
Author

geth 1.5.10-unstable-c8695fae
maybe it an issue ( I' ll try stable version

@AlexeyBarsuk
Copy link
Author

Rebuilt geth.
VERSION:
1.5.9-stable-a07539fb
Problem exists. I do start node this way
geth --shh --fakepow --nodiscover --maxpeers 1 --nat none --rpc --rpcapi="db,eth,net,web3,personal,debug" --rpccorsdomain "*" --datadir "/Users/admin/Desktop/etherium-research/private_chain_directory/" --identity "private_node_1" --networkid 19045 console

@AlexeyBarsuk
Copy link
Author

Tryed to use solc-js to compile. Different versions. The same problem. Take a look at EDIT2 http://ethereum.stackexchange.com/questions/13469/unreal-big-gas-consumption-for-contract-deploying

@AlexeyBarsuk
Copy link
Author

Seems problem appears when bytecode size is ower 48 Kb. Take a look at EDIT 3 http://ethereum.stackexchange.com/questions/13469/unreal-big-gas-consumption-for-contract-deploying

@AlexeyBarsuk
Copy link
Author

Seems you are right it a problem of node. Created issue ethereum/go-ethereum#13846

@AlexeyBarsuk
Copy link
Author

Issue can be closed. Contract code cannot exceed 24576 bytes. ethereum/go-ethereum#13846 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for more input Issues waiting for more input by the reporter
Projects
None yet
Development

No branches or pull requests

2 participants