thrumdev/blobs

CLI: `block query` should wait until the specified block is available

Closed this issue · 1 comments

Or do you mean that it should wait until that block is available?

If so, we might introduce a CLI flag - --wait, or --no-wait, depending on the default desired behavior. I don't have a strong opinion - let's discuss

Originally posted by @rphmeier in #164 (comment)

I am leaning towards the default of not waiting and returning an error (and a non-zero error code). The default should be when the user is invoking the CLI (as opposed to a script). It feels confusing if the CLI tool just gets stuck (although we also can print a message to an stderr).