Open t4ccer opened 2 years ago
As I see it, the general use case is to run ODC inside docker or as a service. So our users don't want to use a specific command for the first run. So the current behaviour looks correct.
Also, I don't see any reasons to use ODC without --use-latest
in production, only for debugging. So I purpose:
--use-latest
(on by default)--re-fetch
flag (or the user can do it by API)?And if we speak about CLI, I don't fully understand why we require block-hash as an argument? Maybe I miss something, but a block slot or block number should be enough?
I also don't see a reason not to use --use-latest
but it's disabled by default to replicate behavior before this flag was implemented. Worth considering using it by default
Closing as current behavior is desired
I guess it's still relevant wrt. https://github.com/mlabs-haskell/ogmios-datum-cache/pull/111
What should happen when user provided
--use-latest
and--block-slot XXX
butXXX
is after slot saved in database? Current behavior will start from block in DB