Skip to content
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

ibc: client params allowlist #7855

Merged
merged 15 commits into from
Nov 11, 2020
Merged

ibc: client params allowlist #7855

merged 15 commits into from
Nov 11, 2020

Conversation

fedekunze
Copy link
Collaborator

@fedekunze fedekunze commented Nov 9, 2020

closes #7825

@fedekunze fedekunze added the x/ibc label Nov 9, 2020
@fedekunze fedekunze marked this pull request as ready for review November 9, 2020 16:24
@codecov
Copy link

codecov bot commented Nov 9, 2020

Codecov Report

Merging #7855 (db0e270) into master (116d046) will decrease coverage by 0.03%.
The diff coverage is 42.06%.

@@            Coverage Diff             @@
##           master    #7855      +/-   ##
==========================================
- Coverage   54.21%   54.18%   -0.04%     
==========================================
  Files         610      612       +2     
  Lines       38868    38960      +92     
==========================================
+ Hits        21071    21109      +38     
- Misses      15639    15692      +53     
- Partials     2158     2159       +1     

Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a nit on client type names, otherwise this logic looks fine.

x/ibc/core/02-client/types/params.go Outdated Show resolved Hide resolved
x/ibc/core/spec/07_params.md Outdated Show resolved Hide resolved
Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall looks good, agree with @cwgoes comments

x/ibc/core/02-client/keeper/client.go Show resolved Hide resolved
Copy link
Member

@AdityaSripal AdityaSripal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve, minor fixes that can be added along with other requested changes

x/ibc/core/02-client/genesis.go Outdated Show resolved Hide resolved

var (
// DefaultAllowedClients are "Solo Machine" and "Tendermint"
DefaultAllowedClients = []string{"Solo Machine", "Tendermint"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should LocalHost be added as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could consider adding it and remove the CreateLocalhost boolean from GenesisState. Although I'd prefer to do that on another PR

@fedekunze fedekunze requested a review from cwgoes November 11, 2020 10:48
@fedekunze fedekunze added A:automerge Automatically merge PR once all prerequisites pass. C:x/params labels Nov 11, 2020
Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@mergify mergify bot merged commit 136f3ad into master Nov 11, 2020
@mergify mergify bot deleted the fedekunze/7825-client-allowlist branch November 11, 2020 11:07
larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
* ibc: client params allowlist

* genesis and gRPC

* client

* lint

* spec

* fixes

* validate localhost client

* move client types back to exported

* update genesis

* sort clients by id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. C:x/params
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow chains to white/black-list IBC client types
4 participants