Closed mieubrisse closed 2 years ago
Adding the --store-genesis
flag fixes this; seems to be related to #146
Well, --store-genesis
is indeed crucial, though we need a special mode for localnet since neither sync-from-interruption
/ sync-from-latest
/ sync-from-block
work great there (you want to start from genesis and continue from interruption afterwards), so we might consider splitting sync-from-interruption
into sync-from-interruption-or-genesis
and sync-from-interruption-or-latest
(the current behavior)
Yep that makes sense - seems like "sync-from-gensis-and-everything-after" would be the ideal (though sync-from-latest
works when the Indexer is the only one running the network, which is the sneaky thing I did in my case 😄 )
This seems to happen because: 1) The
accounts
table is empty by default 2) Thelocalnet
init
'd config produces the followingvalidator_key.json
:3) There's a foreign key constraint on the
accounts
table that isn't getting fulfilled (from the Postgres logs):