remove redundant 'solved' from ProduceSignature #15274

pull fivepiece wants to merge 1 commits into bitcoin:master from fivepiece:sign_redundant_solved changing 1 files +3 −3
  1. fivepiece commented at 10:00 PM on January 27, 2019: contributor

    We only enter the if blocks if solved is true. The && inside seems redundant

  2. remove redundant 'solved' from ProduceSignature
    We only enter the 'if' blocks if 'solved' is true.
    The '&&' inside is redundant
    5579bb1c5f
  3. fanquake added the label Refactoring on Jan 27, 2019
  4. promag commented at 1:20 AM on January 28, 2019: member

    Introduced in #8149 by @sipa, it is indeed unnecessary. No harm keeping them though.

    utACK 5579bb1.

  5. Empact commented at 3:54 PM on January 28, 2019: member

    It's slightly protective in that it guards against the unintentional introduction of a new case that overwrites a false solved. assert could be more helpful if we want to continue to guard against that though.

  6. laanwj commented at 12:12 PM on January 31, 2019: member

    No harm keeping them though.

    It's slightly protective in that it guards against the unintentional introduction of a new case that overwrites a false solved

    Meh. Tend towards NACK, I see no strong need to change this code, sorry.

  7. laanwj closed this on Feb 4, 2019

  8. jonasschnelli commented at 7:03 PM on February 4, 2019: contributor

    Agree with @laanwj and @Empact.

  9. MarcoFalke locked this on Dec 16, 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-22 06:15 UTC

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