Introduce additional parameter to run command --store-genesis (couldn't find better name) to include handling of genesis file on start of indexer.
Currently if activated will run the function that will walk over genesis.records to add records in db with accounts.
~Note If account is already present in db this handler will update created_by_receipt_id and deleted_by_receipt_id by setting them to NULL (assuming account is created in genesis and haven't been deleted), one should carefully use it on Indexer restart.~
@frol let me know what do you think about the behaviour described above.
Closes #13
Introduce additional parameter to
run
command--store-genesis
(couldn't find better name) to include handling of genesis file on start of indexer.Currently if activated will run the function that will walk over
genesis.records
to add records in db with accounts.~Note If account is already present in db this handler will update
created_by_receipt_id
anddeleted_by_receipt_id
by setting them toNULL
(assuming account is created in genesis and haven't been deleted), one should carefully use it on Indexer restart.~@frol let me know what do you think about the behaviour described above.