-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
basecli AppTx - Signer should be added when reading flags #132
Comments
Please show me the code in trackomatron where this is causing a problem. The signer comes from checking the key manager, tried to handle that all in one step, but I guess I could split it up in two parts if it's better. Just want to see a concrete problem with the current structure. |
Within any trackomatron profile is linked to a basecoin pubkey address, aka this information needs to be sent in with the transaction in order to be interpreted used on the server-side processing. Right now, as shown in the above code, we generate the txInput before we generate the custom plugin tx bytes (which need the address). Within the txInput there is a field for the address and the pubkey however, they are left empty at generation and only filled in later in the |
Yeah, I figured all this info could be filled in at the last step. Now I realize, we need to actually build some opaque Sure, pull it out. My thought was a bit that light-client needs to support unsigned tx to work with dummy / merkleeyes / other example apps. So I didn't make the signing name fully required from the get-go. But clearly in basecoin, it is always required. I just didn't change my thinking. Yes, please do the Signer / sig stuff early on here, as it is always needed. |
Closed with #140 |
* fix testing and protobuf related issues * remove unnecessary changes in legacy migration tests * remove extraneous comments * add test for minselfdelegation * fix: Ensure that MsgCreateValidator's accompanying delegation is at least the provided MinSelfDelegation (#132) * add check to make sure validator object is only created if min delegation threshold is met * fix check location and use standard error type * fix logic for check * add test for new check * update test comments for better context * add checks for global min self delegation and fix corresponding tests * add migration code * fix migration code tests * fix staking client unit tests * tidy up * Apply suggestions from code review Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com> Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com> * apply changes suggested in review * fixed edge case error * lint++ * lint++ * Update x/staking/keeper/msg_server.go * Update x/staking/keeper/msg_server.go * Update x/staking/keeper/msg_server.go Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com> Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com> Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com> Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Plugins sometimes require the signer address to function properly. This address should be returned in the
TxInput
ofAppTx
when returned from AppTx Helper commandReadAppTxFlags()
. Right now signers are added later before broadcast in theBroadcastAppTx
as a part of theAddSigner
function. This can simply removed after its been added toReadAppTxFlags()
https://github.com/tendermint/basecoin/blob/develop/cmd/basecli/commands/cmds.go#L148
The text was updated successfully, but these errors were encountered: