-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable simple CLI offline mode to disable querying node & request parameters #3720
Comments
I think this is a good idea. I think we should consider making |
Sure, whatever's easiest - I think we already have an |
ACTIONS:
|
I had second thoughts on |
What exactly are you suggesting @alessio? Keybase has nothing to do with online connectivity; just a local encrypted embedded DB. What does |
I was taking back my
And rightly so.
Context should be adapted to operate in absence of connectivity - e.g. In other words: this is a proper request for a new feature. |
Hmmm, we still need to use The actionable items (AC) I see are:
What do you think? |
All right, true that - sorry for causing confusion. A key name in
We should open a dedicated issue and write relevant ACs as that is what this issue is all about. [brain dump continues] We should really get rid of the But we're talking about quite a refactoring here... [brain dump ends] |
AFAIK, this is the very issue. Do you agree with the AC I've listed? |
Yes, they look good to me. |
I believe this has since been done. |
It is quite difficult right now to use the CLI on an offline computer to sign transactions - the CLI generally expects to be able to query a node for account info, sequence number, etc. and which options need to be overridden are unclear (this is true even with
--generate-only
).I propose we implement a
--offline
flag, which when specified causes gaiacli to prompt the user for all required values (account number, sequence number) and skip any validity checks requiring state queries (e.g. checking account balance).cc @alessio thoughts?
AC
AC1
CLIContext.EnsureAccountExists{,FromAddr}()
unconditionally returnstrue
when--offline
is passed ingaiacli
AC2
When
--offline
is passed ingaiacli
no RPC queries are sent to the node.The text was updated successfully, but these errors were encountered: