Table of Content
What is Rinkeby Testnet
Rinkeby is an Ethereum test network that allows for blockchain development testing before deployment on Mainnet, the main Ethereum network.
The Proof-of-Authority test network was established in April 2017. It uses the Clique PoA consensus protocol, and is maintained by the Geth developer team.
The network is supported by Geth, Nethermind and Hyperledger Besu.
Some features of the network are:
- Testnet / Live: Test
- Chain ID: 4
- Network ID: 4
- Live Since: April 2017
- Block time: 15 seconds
- Consensus / block proposer: PoA – Proof-of-Authority
- Permissioned: Yes
- Governance / Authorities: Known developers who sign the blocks
Meaning of PoA:
Rinkeby doesn’t run Proof of Work, it runs Proof of Authority. This means there are no miners. The people that create blocks are pre-authorized nodes. It’s a network where pre-selected and trusted people are allowed to create the blocks.
Why do we need testnets like Rinkeby?
Before a project launches on the Ethereum blockchain (or before changes are made to the blockchain itself), a version is deployed to an Ethereum Test Network (“testnet”), which simulates Ethereum — this gives developers, the community, and you a chance to kick the tires before real assets are involved. Ether and tokens on a testnet are easy to obtain, and carry no real-world value — still, it can be fun to own 10,000 Ether or a trillion tokens on a testnet.
Testnets
There are three testnets currently in use, and each behaves similarly to the production blockchain (where your real Ether and tokens reside). Developers may have a personal preference or favorite testnet, and projects typically develop on only one of them.
- Ropsten: A proof-of-work blockchain that most closely resembles Ethereum; you can easily mine faux-Ether.
- Kovan: A proof-of-authority blockchain, started by the Parity team. Ether can’t be mined; it has to be requested.
- Rinkeby: A proof-of-authority blockchain, started by the Geth team. Ether can’t be mined; it has to be requested.
Steps for synchronizing a Full Node in Rinkeby
A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well, and these are even faster. I’m using this for dapp development, so I want access to all state.
Before running a FULL node, make sure your current hardware can support it. The documentation states the following:
A full node synchronizes the blockchain by downloading the full chain from the genesis block to the current head block, but does not execute the transactions. Instead, it downloads all the transactions receipts along with the entire recent state. As the node downloads the recent state directly, historical data can only be queried from that block onward.
Initial processing required to synchronize is more bandwidth intensive, but is light on the CPU and has significantly reduced disk requirements. Mid range machines with HDD storage, decent CPUs and 4GB+ RAM should be enough.
Download Geth
First, install the latest geth
version to your machine. For Ubuntu, you can follow the instructions on the official wiki.
|
|
If you’re just upgrade geth
from a previous version, you can just run
|
|
Start geth
for Rinkeby Testnet
To run a FULL node, start Geth with the Rinkeby flag
|
|
After running geth, it will start the syncronization process of downloading previous blocks. Standard output logs should look like these
|
|
You have to wait now, to a full syncronization. However, in the meantime you can open an interactive console connected to geth process via IPC and launch some commands. To do that, use the command below
|
|
On a successful execution, you shoud see a welcome message like this
|
|
Check peer syncing status
To check the peer syncing status, we need to connect to the peer using previous command to open an interactive geth console and then type
|
|
The response contains the current state of our peer.
|
|
When the process ends, you can search for any available Faucet and request some ETH for testing purposes.
Conclusion
Movitated by the need to have a local copy of the ledger in my own machine so that I can research an analyze on existing data, contract, transactions, etc I show you in this article the steps required to do it by your own means. However take into account, that there is no real motivation for peer owners to do this process, since Rinkeby network has no mining process and does not reward people who contribute with nodes.
References
Subscribe, donate or become premium
💬 Share this post in social media
Thanks for checking this out and I hope you found the info useful! If you have any questions, don't hesitate to write me a comment below. And remember that if you like to see more content on, just let me know it and share this post with your colleges, co-workers, FFF, etc.