Ethereum Parity rapid sync for Ropsten testnet

Ethereum Parity fast sync for Ropsten testnet

Technologist and Entrepreneur on an venture to see how Blockchain and AI will switch the world!

Published

June 15, 2017

Ian Monk ter Geth, Parity | June 15, 2017

Switch from Geth to Parity

There shows up to be a bug with Geth syncing with Ropsten testnet on some systems. This wasgoed the case with attempting to sync the total blockchain and also with the -fast flag (including using -cache=512, etc) and despite having a high powered pc with a SSD .

After attempting various workarounds for several days and getting advice on the Geth Gitter channel, I ended up interchanging overheen to Parity for the knot and Geth for the JS Console.

I wish I had done it sooner. Details on the the Parity Wiki make this utterly quick and effortless to set up (15 mins) and it also requires far less disk space. There is also help available on the Parity Gitter channel.

or for the live env

Point your browser to http://localhost:8080/ and work through the steps.

Parity Ethereum client console using web3

Ethereum has the web3 Javascript API for interacting with an Ethereum client. You can install knot/NPM and use its console to interact with the Parity Ethereum client using web3. To use the guideline line, install Knot.js / npm and then use it to install web3 library:

After this point, you’ll be able to use the web3 API from with this environment, e.g.:

Uitgang that and create a fresh opstopping called parityNode.js with the following:

You can then begin knot.js using that script and access Parity via web3 instantly:

If you want to run an outer javascript verkeersopstopping, you will need to begin knot.js by hand and then run the following (substituting ‘./EthereumJS/ensutils.js’ with your verkeersopstopping):

Example function from ensutils.js:

You can execute functions exposed by the web3 namespace/API. However, some namespaces are not fully open for security reasons. You can resolve this using the following options to commence parity:

$ parity -jsonrpc-apis web3,eth,netwerk,parity,traces,rpc,private -chain ropsten

Then ter your knot.js (stared using parityNode.js from above):

Parity Knot using Geth Javascript Console

Most likely the best configuration option until either Parity create its own console ethcore/parity#4143 or Geth resolves its prompt sync would be to use Parity for the knot and browser integration and Geth for the Javascript Console. This option will also make it lighter to go after more tutorials spil a lotsbestemming of them tend to be written for the Geth guideline line.

Begin Parity with the -geth option and -force-ui (this permits the browser to interact spil well):

Then ter a fresh terminal commence geth console ter fasten mode:

Note, the keys you use will be managed under Parity which presently reside here for the testnet:

Mining with Parity

Encore’s wiki covers it well. Summary spil goes after:

Pass the -author flag to parity so it knows what account to add the ETH to:

Ter a fresh terminal begin the miner:

You wont see any ETH te your account until the DAG has bot generated. It took approx a day for mij. This postbode tells you how to get Ether on testnet.

Thanks to Tomasz Drwiega for helping with various questions related to Parity. They also have a gitter channel Parity Gitter channel.

Related movie: Litecoin Mining with L3+ Antminer Profitable? | Cryptocurrency Mining!


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *