celestiaorg / cosmos-sdk

:chains: A Framework for Building High Value Public Blockchains :sparkles:
https://cosmos.network/
Other
19 stars 33 forks source link

fix: allow empty public keys #371

Closed cmwaters closed 10 months ago

cmwaters commented 10 months ago

Description

Empty public keys would throw an error when calling SetSignatures. Public keys are optional and only needed in the first transaction to set it in state.

This should not break consensus and thus is okay as a minor release


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and please add links to any relevant follow up issues.

I have...

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add your handle next to the items reviewed if you only reviewed selected items.

I have...

codecov-commenter commented 10 months ago

Codecov Report

Attention: 52 lines in your changes are missing coverage. Please review.

Comparison is base (e04d485) 65.55% compared to head (fdfb76a) 65.54%. Report is 4 commits behind head on release/v0.46.x-celestia.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/celestiaorg/cosmos-sdk/pull/371/graphs/tree.svg?width=650&height=150&src=pr&token=QPoE0e3PbO&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celestiaorg)](https://app.codecov.io/gh/celestiaorg/cosmos-sdk/pull/371?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celestiaorg) ```diff @@ Coverage Diff @@ ## release/v0.46.x-celestia #371 +/- ## ============================================================ - Coverage 65.55% 65.54% -0.01% ============================================================ Files 666 666 Lines 71180 71213 +33 ============================================================ + Hits 46661 46680 +19 - Misses 21936 21945 +9 - Partials 2583 2588 +5 ``` | [Files](https://app.codecov.io/gh/celestiaorg/cosmos-sdk/pull/371?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celestiaorg) | Coverage Δ | | |---|---|---| | [x/upgrade/keeper/keeper.go](https://app.codecov.io/gh/celestiaorg/cosmos-sdk/pull/371?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celestiaorg#diff-eC91cGdyYWRlL2tlZXBlci9rZWVwZXIuZ28=) | `83.72% <100.00%> (ø)` | | | [x/auth/tx/builder.go](https://app.codecov.io/gh/celestiaorg/cosmos-sdk/pull/371?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celestiaorg#diff-eC9hdXRoL3R4L2J1aWxkZXIuZ28=) | `82.35% <70.00%> (+0.29%)` | :arrow_up: | | [x/params/types/consensus\_params.go](https://app.codecov.io/gh/celestiaorg/cosmos-sdk/pull/371?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celestiaorg#diff-eC9wYXJhbXMvdHlwZXMvY29uc2Vuc3VzX3BhcmFtcy5nbw==) | `0.00% <0.00%> (ø)` | | | [x/auth/client/cli/tx\_multisign.go](https://app.codecov.io/gh/celestiaorg/cosmos-sdk/pull/371?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celestiaorg#diff-eC9hdXRoL2NsaWVudC9jbGkvdHhfbXVsdGlzaWduLmdv) | `0.00% <0.00%> (ø)` | | | [baseapp/abci.go](https://app.codecov.io/gh/celestiaorg/cosmos-sdk/pull/371?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celestiaorg#diff-YmFzZWFwcC9hYmNpLmdv) | `59.93% <11.11%> (-0.67%)` | :arrow_down: | | [baseapp/options.go](https://app.codecov.io/gh/celestiaorg/cosmos-sdk/pull/371?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celestiaorg#diff-YmFzZWFwcC9vcHRpb25zLmdv) | `56.66% <0.00%> (-2.99%)` | :arrow_down: | | [baseapp/params.go](https://app.codecov.io/gh/celestiaorg/cosmos-sdk/pull/371?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celestiaorg#diff-YmFzZWFwcC9wYXJhbXMuZ28=) | `80.00% <0.00%> (-20.00%)` | :arrow_down: | | [baseapp/baseapp.go](https://app.codecov.io/gh/celestiaorg/cosmos-sdk/pull/371?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celestiaorg#diff-YmFzZWFwcC9iYXNlYXBwLmdv) | `73.43% <5.55%> (-3.03%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/celestiaorg/cosmos-sdk/pull/371/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celestiaorg)