bandprotocol / chain

BandChain blockchain reference implementation
GNU General Public License v3.0
125 stars 43 forks source link

withdrawal-rewards using Ledger fails when using --commission #336

Open mnguyen-io opened 9 months ago

mnguyen-io commented 9 months ago

When running band CLI withdrawal-rewards with --commission and a ledger, the transaction fails.

signatures: [] confirm transaction before signing and broadcasting [y/N]: y code: 4 codespace: sdk data: "" events: [] gas_used: "0" gas_wanted: "0" height: "0" info: "" logs: [] raw_log: 'signature verification failed; please verify account number (12), sequence (103) and chain-id (laozi-mainnet): unauthorized' timestamp: "" tx: null txhash: 22B4443D567CF8BC0513C0A4D8D9C35A91F6DA3221F6A84EA89900E77BF85FF6

This same command works if we remove the --commission flag.

RogerKSI commented 9 months ago

@mnguyen-io Hi, Is this the command (bandd tx distribution withdraw-rewards [validator-addr]) that you are referring to?

If yes, --commission will work only if the account that sends the transaction is a validator operator ([validator-addr]) in the command.

mnguyen-io commented 6 months ago

@mnguyen-io Hi, Is this the command (bandd tx distribution withdraw-rewards [validator-addr]) that you are referring to?

If yes, --commission will work only if the account that sends the transaction is a validator operator ([validator-addr]) in the command.

Hi - yes the transaction is indeed being sent by a validator operator.