The same snapshot written twice generates an error during loading
How to repeat an error:
- a blockchain directory is empty. A command:
./hived
- after a few seconds, a node is closed byctrl+c
- a command:
./hived --dump-snapshot s01
- after a few seconds a node is closed byctrl+c
- a command:
./hived --dump-snapshot s01
again - after a few seconds a node is closed byctrl+c
- following files are removed:
block_log.index
andshared_memory.bin
- a command:
./hived --load-snapshot s01
- a node is closed with error:
1142361ms database.cpp:6109 validate_invariants ] 10 assert_exception: Assert Exception
gpo.current_supply == total_supply:
{"gpo.current_supply":{"amount":"175458000","precision":3,"nai":"@@000000021"},"total_supply":{"amount":"134102000","precision":3,"nai":"@@000000021"}}
database.cpp:6088 validate_invariants
1142361ms database.cpp:6109 validate_invariants ] head_block_num(): 43723
terminate called without an active exception
Aborted (core dumped)