-
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
R4R: Gaia Lite Generate Only Support (w/o Keybase) #3396
Conversation
- remove gen only logic - update base req to use from instead of name - use context to get the from address and name
Codecov Report
@@ Coverage Diff @@
## develop #3396 +/- ##
===========================================
+ Coverage 59.35% 59.42% +0.07%
===========================================
Files 131 131
Lines 9868 9891 +23
===========================================
+ Hits 5857 5878 +21
- Misses 3639 3641 +2
Partials 372 372 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add some tests for the Automatic account number and sequence population when fields are omitted
and Generate only functionality no longer requires access to a local Keybase
on lcd_test.go
?
docs/gaia/gaiacli.md
Outdated
@@ -231,7 +233,12 @@ gaiacli tx send \ | |||
--generate-only > unsignedSendTx.json | |||
``` | |||
|
|||
You can now sign the transaction file generated through the `--generate-only` flag by providing your key to the following command: | |||
__Note__: Simulation cannot be used in conjunction with tx generation only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a custom container to make the note bigger ? (check https://vuepress.vuejs.org/guide/markdown.html#custom-containers)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And why is the simulation not working in this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fedekunze yeah sure, updated!
@faboweb not sure what you mean? Is the comment/note not explanatory enough? You can't use simulate
and generate_only
together because simulate
requires a pubkey and generate_only
does not use a Keybase (as requested) and thus you cannot attach a pubkey.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does the simulation need a real pubkey?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the same issue: #3423 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I cannot reproduce #3396 -- "auto" works for me. Simulation needs a public key because a large part of gas estimation is signature verification.
Also note: "gas": "auto"
=/= "simulate"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah ok, I missed that those are different things. But for signature verification you could use any pubkey, can't you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not pollute this PR with the discussion and move it over to #3430
so we don't need to set those? that is probably the awesomest change ever!!! |
@faboweb yup! And it was just a one-liner :) |
Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com>
@fedekunze yes, sure thing. |
…into bez/3284-gaia-lite-gen-only-tx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great changes @alexanderbez LGTM
name
=>from
, again just like the CLI ⚡️)CompleteAndBroadcastTxREST
prepareTxBuilder
which will allow account number and nonce to be derived from stategenerate_only
andsimulate
as query params (these were deprecated long agooooo)name
tofrom
closes: #3284
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added entries in
PENDING.md
with issue #rereviewed
Files changed
in the github PR explorerFor Admin Use: