mimblewimble / grin-explorer

Blockchain explorer for grin
GNU Affero General Public License v3.0
59 stars 53 forks source link

After restarting the process, I get this #53

Closed alirezajon closed 4 years ago

alirezajon commented 4 years ago

After restarting the process, I get this

$ python3 ./grinexplorer/manage.py import_from_tip http://127.0.0.1:13413
height=10919, tip=01eb56a93f0c82bc9938ff7788960ac38613e266d4a171cbe43cd372f6012e5b

Stored block 01eb56a93f0c82bc9938ff7788960ac38613e266d4a171cbe43cd372f6012e5b @ 10919
Stored block 013aa818df9edca4f235c751a02edaf601784520476dc6b39b717078f2a6cd4e @ 10918
  Marked block 013aa8 as previous of block 01eb56
Stored block 003ca230fec9f7c83226c178c8cb27901b54a3375858f9cf8c00f093e7eafe01 @ 10917
  Marked block 003ca2 as previous of block 013aa8
Stored block 02369cb2055ad587884462ed66098ba400bb89191ba7c3c63b5f5a57b9ece87e @ 10916
  Marked block 02369c as previous of block 003ca2
Stored block 011711091da6ea588ed4b757cee63fdd3cd4ced535da30a957c2ea3d07f52f14 @ 10915
  Marked block 011711 as previous of block 02369c
Stored block 01d6ce01291bdab0a02951bd9ed044842b855da9de10f01096a9707778376657 @ 10914
  Marked block 01d6ce as previous of block 011711
Block 02dee96cbcf6edeec5653b12fda07702db26b09a2742a2ae6b1e86dc9aea3806 already exists @ 10913
Stored block 02dee9 as previous of block 01d6ce
== exiting early

Originally posted by @kargakis in https://github.com/mimblewimble/grin-explorer/issues/33#issuecomment-451658928

hendi commented 4 years ago

That's not a bug, but expected behaviour to avoid unnecessary work.

If you've interrupted an ongoing import and want to ignore existing block, you can use the --full-scan=true flag. With that, the importer doesn't stop when it sees an existing block.