reject P2P message (BIP61) #75

pull gavinandresen wants to merge 1 commits into bitcoin:master from gavinandresen:bip61 changing 1 files +153 −0
  1. gavinandresen commented at 3:26 PM on June 18, 2014: contributor

    Long overdue, I finally found the time to tidy up my 'gist' into a BIP.

  2. reject P2P message (BIP61) 4d9e7bc20c
  3. schildbach commented at 3:42 PM on June 18, 2014: contributor

    Thanks, I think this can be very useful. Random thoughts:

    Should the string somehow be limited? Why is there no "accept" message as well? If there is a reason, I think it should be noted somewhere in this BIP. I think there should be a standard rejection code for "Double spend". That's the most common reason transactions for non-propagating transactions from SPV clients.

  4. gavinandresen commented at 3:55 PM on June 18, 2014: contributor

    The string is limited by the maximum length on P2P messages. If you're worried about use-up-bandwidth denial-of-service attacks, that worry is misplaced (I can send you max-length unknown messages all day long that you ignore as easily as reject messages, but it costs me as much bandwidth as it costs you).

    There is no accept message because that would just waste bandwidth in the common case. As for putting that in the spec: not going to do that, specs should be short and to-the-point, not rehash every design decision that went into making them.

    rejection code for double-spend: patches welcome, feel free to implement that and submit a new BIP.

  5. schildbach commented at 4:14 PM on June 18, 2014: contributor

    Sure, here is my "patch":

    | 0x43 || Attempted double spend

    Why a new BIP for that simple addition?

    re "accept": I thought it might be useful. Many devs will ask this question, as usually you have an accept/reject pair.

  6. laanwj referenced this in commit a34ae6469d on Jun 25, 2014
  7. laanwj merged this on Jun 25, 2014
  8. laanwj closed this on Jun 25, 2014

  9. schildbach commented at 10:29 AM on June 25, 2014: contributor

    @laanwj Did you look at my comments before merging?

  10. laanwj commented at 10:32 AM on June 25, 2014: member

    @schildbach Yes, but unlike with code, not all comments need to be addressed before putting something in the repository in the first place. The information is not final. You can submit any changes as your own pull request.

  11. real-or-random referenced this in commit 3640b12d06 on Feb 23, 2023

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 18:10 UTC

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