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

Sync in runPrivate #90

Open
Moha66 opened this issue Jun 1, 2018 · 2 comments
Open

Sync in runPrivate #90

Moha66 opened this issue Jun 1, 2018 · 2 comments

Comments

@Moha66
Copy link

Moha66 commented Jun 1, 2018

When I make a runPrivate it shows me that Sync is disable in the ethereum-harmony interface.
How can I make it work?, so I can upload a contract. Also I don't know what is the different between fast and long Sync?

Thank you.

@zilm13
Copy link
Contributor

zilm13 commented Jun 1, 2018

@Moha66 if you want to enable sync you could either change sync.enabled property in private.conf config or pass it via command line by adding this flag override: -Dsync.enabled=true

Fast sync is generally designed for big networks like Ethereum Mainnet to reduce synchronization time. Instead of downloading block one by one and executing every tx to get the state of current height in fastsync your client downloads state snapshot near the HEAD of current network, verifies it and switches to regular sync. Usually it's not needed in private networks.

To deploy contract you need to send tx with contract deployment to the network. You could create it either from code using ethereumj or using json-rpc:
https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_compilesolidity
https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sendtransaction

@3Mohammed2013
Copy link

@zilm13 what I understand from you that , we usually do not need to be fully sync in the private networks , we could deploy the contract by using those eth_compileSolidity , eth_sendTransaction in the json-rpc

but, the second option i do not understanding which using ethereumj

could you please correct me , and explain the ethereumj how could we do that

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

No branches or pull requests

3 participants