Ethereum: running live and test node simultaneously

Here is an article project:

Title: Ethereum: execution of the live knot and simultaneusly test – experimenting with testnet transactions

Introduction:

As a developer of Ethereum, I explored the Running Live and Testes posts in a nice way. This experience is a great link, allowing me to a fixed set and explore in this article, I will have a job in the process of creating both and testicles on Etherum, such as Bennazioni on Testnet.

Why perform the live knots at the same time and test?

Ethereum: running live and test node simultaneously

Before immersing ourselves in implementation, we understand that the race of the whole white both is beneficial: it is beneficial:

Test and development : Having both a live node for tests and a separate node for development allows me to allow myself to quickly take the surroundings.

Optimization of performance : by performing them simultaneously, I can optimize the performance of the performance by minimizing the latency and maximizing through.

Problem resolution *: if Aresue on the live node, it is for the resolution of problems with a separate node.

Setting the Ethereum nodes

Tour simultaneously both knots, we must each configure separately. Gere are the teps:

1. Install the necessary Sooftware

Make will be installed in the videos of the

`Bash

SUDO APT-GET UPDATE

SUDO apt-get installs Ethereum-0.6 Ethereum-Testrpc Ethereum-Trie

`

For Ethereum Mainnet, you can pack "Etherum".

For testnet, we will useEtherum-Testrpc.

2. Configure the live node

Create a new configuration for your live node (ehersd.conf) and modify it to include

`inin

[Chainid]

name = mainnet

RPCUSER =

RPCPASSWORD =

ReplacWontual live rpc user and password.

3. Configure the test node

Create a new configuration for the test node (EtherSd.conf-Testnet ') and IE includes diversity:

inin

[Chainid]

name = testnet

RPCUSER =

rpcpassword =

Once again, replacewith the user and password actually RPC RPC.

4. Fill in the knots

Compilic both ethhereum nodes use the following ones:

Bash

SUDO ./scripts/compilee-etherum.sh.

SUDO ./scripts/compiley-etherum-testnet.

`

5. Start the knots

Start both running knots

Bash

./ethersd.conf live

./ethersd.conf-testnet testnet

`

Experience with Testnet transactions

On you you have active and functioning knots, it's time to experiment with testnet transactions! It is possible through the RPCTestrpc ‘tool tool with your test. Here are the passages of Soome:

  • Clone a new Ethereum contractor or create a new one on one who uses the following!

`Bash

Git Click

`

2

  • Create a new transaction uses the commission on diversity:

Bash

Truffle run compiles -Network testnet

Truffle Round -Network Testnet

Truffle Run Test -n 1000

``

It is to create a new transaction with 1000 tests, which perform it

4

  • Repeat the experiment without different scenarios, they follow one another as a modification of the contraction code or adding personalized functions.

Conclusion:

The live ride and the tests simultaneously has a precious experiment for me. By setting both nodes separately and experimenting with testnet transactions, I acquired a deeper understanding of the behavior and optimization techniques of the Ethereum network.

Ethereum Much Provide

Comments are closed.