Remove base58 hard-coding #6323

pull penguin1333 wants to merge 1 commits into bitcoin:master from penguin1333:patch-1 changing 1 files +1 −1
  1. penguin1333 commented at 11:00 PM on June 22, 2015: none

    Not a big change, just more efficient. It was hard coded, and though it works either way, it's better than it being hard coded.

  2. Remove base58 hard-coding f2915379a7
  3. luke-jr commented at 11:49 PM on June 22, 2015: member

    More efficient how? If anything, this would be less efficient.

  4. penguin1333 commented at 1:32 AM on June 23, 2015: none

    @luke-jr

    This isn't less efficient. We're never going to change it, so why keep it hard coded? It's bad practice.

    But either way, it works the same. So I'd just say to merge it if you want more "pretty" code.

  5. penguin1333 commented at 1:35 AM on June 23, 2015: none

    Here's an example:

    You have 1 apple.

    You want to count it 3 times.

    You could say "1 apple + 1 apple + 1 apple"

    or you could store it in say, a variable called "a" and do "a*3"

  6. paveljanik commented at 5:38 AM on June 23, 2015: contributor

    NACK If you want to have prettier code, why not rewrite the whole last phase of the function? Why skip zeroes and prefill with 1s at all?

  7. penguin1333 commented at 6:01 AM on June 23, 2015: none

    I guess that's true, but it wouldn't hurt to merge would it? It's been requested and it makes things neater imo.

    But of course, that's arguable. I don't feel like arguing because it's a waste of time and I already probably agree with you. I just thought "why not?". Haha

  8. laanwj commented at 6:45 AM on June 23, 2015: member

    I have no opinion on whether this is better or not. Something can be said for both sides.

    But I feel this discussion is a waste of time, please don't make changes if they don't solve a problem, we're barged with pull requests as it is.

  9. laanwj closed this on Jun 23, 2015

  10. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 21:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me