Importing the Blockchain to Electroneum CLI

It really shouldn’t hang unless you have something installed/running on your Windows that’s somehow interfering with block sync,… CPU usage is quite high while blockchain is syncing.

May I ask, how long have you left it hanging at block 77350? And have you tried restarting electroneumd.exe ?

may i request a copy of the 28gb+ file please ?

A lot of work to be done there, constant incoming blocks and all will be a pain to keep that data updated, would mostly encourage everyone to at least adapt to importing that official raw blockchain and using --verify 0, makes it quit faster.

Though awesome work!

In principle I agree, but I believe the export height of the official is only 200000

Btw, do you know the height of this official export ?

When the official blockchain.raw has height 350000 - 400000, I will take down my file

I would recommend verify on, since my export is not official.

Here is a 4 months old reddit-link on the topic:

1 Like

I downloaded this blockchain.raw September 2018, if update was pushed of new image, it could be bigger now.
image
image

1 Like

I’m seeing current blockchain.raw from https://downloads.electroneum.com/blockchain.raw is over 13GB which should hold more than 323k blocks, its nice to see it updated.

1 Like

Now the offical blockchain.raw has 390876! Much appreciated, the download speed was lightning fast. Thanks :smile:

2 Likes

Thanks, I’ll remove the download-link to my unofficial .raw
Everyone should use the official trusted source.

The ETN Team is also working on a new checksum feature to speed up import :+1:

2 Likes

there is error what can i do ?

I get the same error. I think it is with blockchain.raw file. It needs to be updated for the latest changes. @Rach can you please update this file?

@rebvari @MJ138

Unable to sync blockchain

i am using the lastest Electroneum 3.0.0.0 from github downloaded

everytime i am getting this error .

help us to solve it .

log :

2019-07-13 05:04:12.776 8868 INFO logging contrib/epee/src/mlog.cpp:148 New log categories: *:WARNING,net:FATAL,net.p2p:FATAL,net.cn:FATAL,global:INFO,verify:FATAL,stacktrace:INFO,logging:INFO,msgwriter:INFO
2019-07-13 05:04:12.777 8868 INFO logging contrib/epee/src/mlog.cpp:148 New log categories: *:WARNING,net:FATAL,net.p2p:FATAL,net.cn:FATAL,global:INFO,verify:FATAL,stacktrace:INFO,logging:INFO,msgwriter:INFO,bcutil:INFO
2019-07-13 05:04:12.777 8868 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:801 Starting…
2019-07-13 05:04:12.778 8868 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:836 database: lmdb
2019-07-13 05:04:12.778 8868 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:837 database flags: 0
2019-07-13 05:04:12.779 8868 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:838 verify: false
2019-07-13 05:04:12.779 8868 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:842 batch: true batch size: 20000
2019-07-13 05:04:12.779 8868 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:848 resume: true
2019-07-13 05:04:12.779 8868 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:849 testnet: false
2019-07-13 05:04:12.781 8868 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:851 bootstrap file path: D:\Electronumeblockchain.raw
2019-07-13 05:04:12.782 8868 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:852 database path: C:\ProgramData\electroneum
2019-07-13 05:04:13.544 8868 WARN global src/blockchain_utilities/blockchain_import.cpp:862 e[1;31m
Import is set to proceed WITHOUT VERIFICATION.
This is a DANGEROUS operation: if the file was tampered with in transit, or obtained from a malicious source,
you could end up with a compromised database. It is recommended to NOT use --verify 0.


You have 20 seconds to press ^C or terminate this program before unverified import starts
*****************************************************************************************e[0m
2019-07-13 05:04:33.547 8868 INFO global src/cryptonote_core/cryptonote_core.cpp:343 Loading blockchain from folder C:\ProgramData\electroneum\lmdb …
2019-07-13 05:04:33.550 8868 WARN blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:73 Failed to open lmdb environment: Input/output error
2019-07-13 05:04:33.550 8868 ERROR cn src/cryptonote_core/cryptonote_core.cpp:419 Error opening database: Failed to open lmdb environment: Input/output error
2019-07-13 05:06:13.039 8964 INFO logging contrib/epee/src/mlog.cpp:148 New log categories: *:WARNING,net:FATAL,net.p2p:FATAL,net.cn:FATAL,global:INFO,verify:FATAL,stacktrace:INFO,logging:INFO,msgwriter:INFO
2019-07-13 05:06:13.039 8964 INFO logging contrib/epee/src/mlog.cpp:148 New log categories: *:WARNING,net:FATAL,net.p2p:FATAL,net.cn:FATAL,global:INFO,verify:FATAL,stacktrace:INFO,logging:INFO,msgwriter:INFO,bcutil:INFO
2019-07-13 05:06:13.040 8964 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:801 Starting…
2019-07-13 05:06:13.040 8964 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:836 database: lmdb
2019-07-13 05:06:13.040 8964 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:837 database flags: 0
2019-07-13 05:06:13.041 8964 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:838 verify: false
2019-07-13 05:06:13.041 8964 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:842 batch: true batch size: 20000
2019-07-13 05:06:13.042 8964 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:848 resume: true
2019-07-13 05:06:13.042 8964 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:849 testnet: false
2019-07-13 05:06:13.044 8964 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:851 bootstrap file path: D:\Electronume\blockchain.raw
2019-07-13 05:06:13.045 8964 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:852 database path: C:\ProgramData\electroneum
2019-07-13 05:06:13.776 8964 WARN global src/blockchain_utilities/blockchain_import.cpp:862 e[1;31m
Import is set to proceed WITHOUT VERIFICATION.
This is a DANGEROUS operation: if the file was tampered with in transit, or obtained from a malicious source,
you could end up with a compromised database. It is recommended to NOT use --verify 0.


You have 20 seconds to press ^C or terminate this program before unverified import starts
*****************************************************************************************e[0m
2019-07-13 05:06:33.778 8964 INFO global src/cryptonote_core/cryptonote_core.cpp:343 Loading blockchain from folder C:\ProgramData\electroneum\lmdb …
2019-07-13 05:06:33.784 8964 INFO global src/cryptonote_core/cryptonote_core.cpp:441 Loading checkpoints
2019-07-13 05:06:33.785 8964 WARN blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:2775 WARNING: batch transaction mode already enabled, but asked to enable batch mode
2019-07-13 05:06:33.786 8964 INFO bcutil src/blockchain_utilities/bootstrap_file.cpp:348 bootstrap file recognized
2019-07-13 05:06:33.786 8964 INFO bcutil src/blockchain_utilities/bootstrap_file.cpp:358 bootstrap::file_info size: 4
2019-07-13 05:06:33.788 8964 INFO bcutil src/blockchain_utilities/bootstrap_file.cpp:369 bootstrap file v0.1
2019-07-13 05:06:33.788 8964 INFO bcutil src/blockchain_utilities/bootstrap_file.cpp:370 bootstrap magic size: 4
2019-07-13 05:06:33.789 8964 INFO bcutil src/blockchain_utilities/bootstrap_file.cpp:371 bootstrap header size: 1024
2019-07-13 05:06:33.789 8964 INFO bcutil src/blockchain_utilities/bootstrap_file.cpp:468 Scanning blockchain from bootstrap file…
2019-07-13 05:08:51.443 8964 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:292 bootstrap file last block number: 588985 (zero-based height) total blocks: 588986
2019-07-13 05:08:51.455 8964 INFO bcutil src/blockchain_utilities/bootstrap_file.cpp:348 bootstrap file recognized
2019-07-13 05:08:51.455 8964 INFO bcutil src/blockchain_utilities/bootstrap_file.cpp:358 bootstrap::file_info size: 4
2019-07-13 05:08:51.456 8964 INFO bcutil src/blockchain_utilities/bootstrap_file.cpp:369 bootstrap file v0.1
2019-07-13 05:08:51.456 8964 INFO bcutil src/blockchain_utilities/bootstrap_file.cpp:370 bootstrap magic size: 4
2019-07-13 05:08:51.457 8964 INFO bcutil src/blockchain_utilities/bootstrap_file.cpp:371 bootstrap header size: 1024
2019-07-13 05:08:51.458 8964 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:336 start block: 1 stop block: 588985
2019-07-13 05:08:51.458 8964 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:340 Reading blockchain from bootstrap file…
2019-07-13 05:08:54.919 8964 INFO global src/blockchain_db/lmdb/db_lmdb.cpp:577 [batch] DB resize needed
2019-07-13 05:08:54.920 8964 INFO global src/blockchain_db/lmdb/db_lmdb.cpp:497 LMDB Mapsize increased. Old: 1024MiB, New: 4174MiB
2019-07-13 05:08:54.973 8964 FATAL bcutil src/blockchain_utilities/blockchain_import.cpp:549 exception while reading from file, height=1: Error in deserialization of chunk

told u bro i use those last verson of electroneum

also use Blockchain Data : [blockchain]
(https://downloads.electroneum.com/blockchain.raw)

1 Like

Has the raw blockchain been updated yet?

2 Likes

Dont think so, people are still complaining about failed imports

1 Like

Ah ok,… will be updated when updated I guess :joy:

1 Like

import was successfully just when i open electroneud its said this error

its import log :

2019-07-14 13:14:14.660 12464 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:647 Starting…
2019-07-14 13:14:14.660 12464 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:682 database: lmdb
2019-07-14 13:14:14.660 12464 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:683 database flags: 0
2019-07-14 13:14:14.660 12464 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:684 verify: true
2019-07-14 13:14:14.660 12464 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:688 batch: true batch size: 5000
2019-07-14 13:14:14.660 12464 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:694 resume: true
2019-07-14 13:14:14.660 12464 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:695 testnet: false
2019-07-14 13:14:14.660 12464 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:697 bootstrap file path: C:\ProgramData\electroneum\export\blockchain.raw
2019-07-14 13:14:14.660 12464 INFO bcutil src/blockchain_utilities/blockchain_import.cpp:698 database path: C:\ProgramData\electroneum
2019-07-14 13:14:14.666 12464 INFO global src/cryptonote_core/cryptonote_core.cpp:324 Loading blockchain from folder C:\ProgramData\electroneum\lmdb …
2019-07-14 13:14:14.670 12464 WARN blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:73 Failed to open lmdb environment: Input/output error
2019071413:14:14.670 12464 ERROR cn src/cryptonote_core/cryptonote_core.cpp:400 Error opening database: Failed to open lmdb environment: Input/output error

at last i find old version of electroneud for importing block chain
it solved
but when i start_mining its writing :
Error: mining has NOT been started: daemon is busy. Please try again later.

Dear @rebvari

Perhaps you did not realize but Electroneum has forked to the new Moderated Blockchain, The new Proof of Responsibility github files can be found here

I would strongly suggest that you watch the announcement video and read the announcement post.

It seems you are still trying to mine electroneum, which is no longer available.

Thanks
M

2 Likes