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

rename blacklist to blocked #6455

Merged
merged 4 commits into from
Jun 17, 2020
Merged

Conversation

colin-axner
Copy link
Contributor

@colin-axner colin-axner commented Jun 17, 2020

Description

Renamed to CannotSendTo. The golang renamings were blockListed and ignoreListed. I wanted to stay away from block because I could see that being confused for actual blocks on the chain and ignore doesn't feel as self-describable as CannotSendTo.

If someone has a name they think works better, I'll gladly update this pr again 👍

closes: #6447


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • 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.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

@colin-axner colin-axner changed the title Colin/6447 change blacklist naming rename blacklist to cannotSendTo Jun 17, 2020
@codecov
Copy link

codecov bot commented Jun 17, 2020

Codecov Report

Merging #6455 into master will not change coverage.
The diff coverage is 80.95%.

@@           Coverage Diff           @@
##           master    #6455   +/-   ##
=======================================
  Coverage   55.98%   55.98%           
=======================================
  Files         466      466           
  Lines       27908    27908           
=======================================
  Hits        15623    15623           
  Misses      11180    11180           
  Partials     1105     1105           

Copy link
Collaborator

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

LGTM. What about denylist or disabledlist? @tessr has good ideas too regarding this

@colin-axner
Copy link
Contributor Author

LGTM. What about denylist or disabledlist? @tessr has good ideas too regarding this

I'd be fine with denyList (not sure if we want Recv in there). disable implies possibility of re-enabling, but that is not possible since this list is statically created/set (and for security won't change)

@fedekunze fedekunze requested review from zmanian and tessr June 17, 2020 07:04
@tessr
Copy link
Contributor

tessr commented Jun 17, 2020

Woo, thanks for doing this! I agree that blockList would be confusing and I like the emphasis on being as descriptive as possible.

My question would be, what is the reason that you cannot send to these addresses? Is it that they've been blocked because they're bad in some way? Would blockedList be confusing, too? Or blockedAddrs? cannotSendTo is basically fine, but I think it's not just that you cannot send to these addresses but that you should not, right?

Another possibility is banList/bannedAddrs.

Anyways, this is all a bike shed and I'm just happy we're switching to more neutral language!

@colin-axner
Copy link
Contributor Author

My question would be, what is the reason that you cannot send to these addresses? Is it that they've been blocked because they're bad in some way? Would blockedList be confusing, too? Or blockedAddrs? cannotSendTo is basically fine, but I think it's not just that you cannot send to these addresses but that you should not, right?

If I remember correctly, those addresses aren't "bad", but they just don't support correct adjustment of supply and therefore cause supply invariants to break.

I think blockedAddrs works well. I don't think there is any particular reason list needs to be in the name, especially since it is a map. Will update to that 👍

@colin-axner colin-axner changed the title rename blacklist to cannotSendTo rename blacklist to blocked Jun 17, 2020
@fedekunze fedekunze added the A:automerge Automatically merge PR once all prerequisites pass. label Jun 17, 2020
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

Excellent <3

@mergify mergify bot merged commit eb3f7e6 into master Jun 17, 2020
@mergify mergify bot deleted the colin/6447-change-blacklist-naming branch June 17, 2020 13:32
larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
* rename blacklisted to cannotSendTo

* add changelog

* rename to blockedAddrs

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change blacklist naming
4 participants