Reject code DUPLICATE also used for rejecting tx #148

pull NicolasDorier wants to merge 1 commits into bitcoin:master from NicolasDorier:patch-6 changing 1 files +2 −0
  1. NicolasDorier commented at 4:56 PM on March 26, 2015: contributor

    The reject code 0x12 is used for Version duplicate, but also when an input is already spent (bad-txns-inputs-spent)

  2. Reject code DUPLICATE also used for rejecting tx
    The reject code 0x12 is used for Version duplicate, but also when an input is already spent (bad-txns-inputs-spent)
    cb6f731f62
  3. laanwj commented at 8:14 AM on May 26, 2015: member

    Ping author @gavinandresen

  4. schildbach commented at 8:35 AM on May 26, 2015: contributor

    I suggested this to Gavin when BIP61 was presented, but he rejected.

  5. NicolasDorier commented at 12:03 PM on May 26, 2015: contributor

    well, I can say this is as is implemented today. When a BIP and bitcoin core differ, I think we should change the BIP.

  6. laanwj commented at 3:55 PM on May 26, 2015: member

    That's a fact for consensus code. The code is leading there because it's too hard to change anything.

    But I'm not sure in this case. If the overlap in numbers is not intentional, changing the code is also a possibility. But I'm also fine with documenting as-is.

  7. gavinandresen commented at 5:59 PM on May 26, 2015: contributor

    ACK on this change.

    RE: BIP versus reference implementation code: I agree with @laanwj -- the reference implementation defines consensus, but for non-consensus things like this either the BIP or the implementation can be changed.

  8. laanwj referenced this in commit 5773aa4693 on Jun 22, 2015
  9. laanwj merged this on Jun 22, 2015
  10. laanwj closed this on Jun 22, 2015

  11. laanwj cross-referenced this on Feb 9, 2016 from issue Reject behavior does not coincide with BIP0061 by davecgh
  12. luke-jr referenced this in commit 9dc3c5bf4a on Jun 6, 2017
  13. ajtowns referenced this in commit 4b25ff7b92 on Dec 11, 2019

github-metadata-mirror

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

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