load snapshot issues, "state-head": 0
After saving snapshot, and cleaning up state, so there's only block_log
left, attempt to load it ends up with:
chain_plugin.cpp:370 initial_settings ] Starting chain with shared_file_size: 21474836480 bytes
chain_plugin.cpp:475 open ] Opening shared memory from /home/hive/.hived/blockchain
block_log.cpp:144 open ] Log is nonempty
block_log.cpp:175 open ] Index is empty
block_log.cpp:413 construct_index ] Reconstructing Block Log Index...
legacy_asset.hpp:101 unpack ] unpack legacy serialization 84959911236353
legacy_asset.hpp:101 unpack ] unpack legacy serialization 84959911236353
legacy_asset.hpp:101 unpack ] unpack legacy serialization 84959911236357
legacy_asset.hpp:101 unpack ] unpack legacy serialization 84959911236357
legacy_asset.hpp:101 unpack ] unpack legacy serialization 84959911236354
legacy_asset.hpp:101 unpack ] unpack legacy serialization 54083036524547
legacy_asset.hpp:101 unpack ] unpack legacy serialization 52983524898307
legacy_asset.hpp:101 unpack ] unpack legacy serialization 52983524898307
chain_plugin.cpp:489 open ] Replaying is not finished. Synchronization is not allowed. { "block_log-head": 45056157, "state-head": 0 }
chain_plugin.cpp:726 plugin_shutdown ] closing chain database
database.cpp:494 close ] Closing database
database.cpp:512 close ] Database is closed
chain_plugin.cpp:729 plugin_shutdown ] database closed successfully
Shutting down...
exited cleanly
i.e. block_log.index
is re-created but then it ends unexpectedly
when block_log.index
already exists (so only shared_memory.bin
file is missing) then:
chain_plugin.cpp:370 initial_settings ] Starting chain with shared_file_size: 21474836480 bytes
chain_plugin.cpp:475 open ] Opening shared memory from /home/hive/.hived/blockchain
block_log.cpp:144 open ] Log is nonempty
block_log.cpp:153 open ] Index is nonempty
chain_plugin.cpp:489 open ] Replaying is not finished. Synchronization is not allowed. { "block_log-head": 45056157, "state-head": 0 }
chain_plugin.cpp:726 plugin_shutdown ] closing chain database
database.cpp:494 close ] Closing database
database.cpp:512 close ] Database is closed
chain_plugin.cpp:729 plugin_shutdown ] database closed successfully
Shutting down...
exited cleanly