«Prev Epoch Next Epoch»

Ethereum: basics 1

0/18 pages

Download the Full BlockChain, epoch by epoch

Download Ethereum Blockchain - Epoch 2

Donate at  0x57f64f50ab0510650b551ec2cb7c7f5d6c7271a5
sha256 checksum: d0aa2fb6f19289e2961671642c8d52f38f5b6570f43d7645e953a99049cfc07a

Epoch 2: Let's import our first epochs!

At this time, you should have downloaded3 files: epoch0, epoch1, epoch2.

What is an epoch and what this binary archives contain will be explained in next pages.

What you need to know, now, is that we (mudra.cloud team) splitted the full blockchain in epochs, and the full blockchain is the same for everyone.

So, instead of using "syincing" (we will speak about it in the future), you can import the blockchain from our epoch files.

To take it simple, if you haven't practice with file systems, we suggest you to download / move the epoch files on the same directory of GETH in Windows, or to configure GETH in environment variables to be callable from everywhere as in Linux. For Linux, simply go with command prompt in the same directory where you downloaded epoch files.

It's not purpose of this walkthrough to teach basic sys knowledge, so we hope you can search on the internet if you need help in understanding what we are going to eplain.

GETH import

The Linux/Windows/OS X commands are the same from now, so we will not separate the guide.
Check if GETH is callable from the directory where you are, and if not, move in it:

geth version

Now, move epoch files in the current directory, or change the SOURCE to be the path to the epoch file.

Let's import epoch0, now! Type:

geth import epoch0

where epoch0 is the position of the file ("C:\download\epoch0", "/tmp/epoch0" or whatever you want)

Understanding GETH output

If you already imported the blocks contained in epoch0, or you started the sync in the past and you have already this part of the blockchain, don't worry! Geth will advise you that these blocks are already present, this way:

INFO [08-10|22:42:21] Importing blockchain file=epoch0
INFO [08-10|22:42:22] Skipping batch as all blocks present batch=0 first=88e96d…406cb6 last=dcdb0a…b6c720
INFO [08-10|22:42:23] Skipping batch as all blocks present batch=1 first=d43fb9…75c179 last=5f91e5…ce68d6
INFO [08-10|22:42:24] Skipping batch as all blocks present batch=2 first=fee1f8…74090b last=1d3fe0…6b8ff0
INFO [08-10|22:42:24] Skipping batch as all blocks present batch=3 first=132d70…1320cf last=dc2d93…70a524
...

If you blockchain data were empty, instead, you'll see that epoch0 was correctly loaded:

INFO [08-10|22:46:55] Writing default main-net genesis block
INFO [08-10|22:46:55] Loaded most recent local header number=0 hash=d4e567…cb8fa3 td=17179869184
INFO [08-10|22:46:55] Loaded most recent local full block number=0 hash=d4e567…cb8fa3 td=17179869184
INFO [08-10|22:46:55] Loaded most recent local fast block number=0 hash=d4e567…cb8fa3 td=17179869184
INFO [08-10|22:46:55] Importing blockchain file=epoch0
INFO [08-10|22:47:03] Imported new chain segment blocks=520 txs=0 mgas=0.000 elapsed=8.013s mgasps=0.000 number=520 hash=5c6e2f…74770b
INFO [08-10|22:47:07] Imported new chain segment blocks=1980 txs=0 mgas=0.000 elapsed=3.623s mgasps=0.000 number=2500 hash=dcdb0a…b6c720
INFO [08-10|22:47:15] Imported new chain segment blocks=1938 txs=0 mgas=0.000 elapsed=8.001s mgasps=0.000 number=4438 hash=221213…d10821
...

Go to next epochs to learn how to import the blockchain

«Prev Epoch Next Epoch»