Orphan-triggered tx fetch does not ask for witness data #9182

issue sipa openend this issue on November 18, 2016
  1. sipa commented at 2:40 am on November 18, 2016: member

    Reported by @roasbeef and @chjj on IRC.

    Describe the issue

    When we receive a transaction with an unknown input, since 0.13.0 we send a getdata for that transaction in response, to quickly learn the dependency. Unfortunately, we always ask for it as MSG_TX instead of MSG_WITNESS_TX.

    Can you reliably reproduce the issue?

    018:20:33 < roasbeef> hmm, chjj and I seem to be encountering some odd behavior with segwit enabled core nodes on testnet: they aren't including witness_tx inv's in their getdata's when
    1                     fetching transactions, so they fetch witness output spending transactions without the witness data (though the service bit is set). this should cause an immediate
    2                     rejecvt due to the clean-stack rules, but they keep accepting the txns, sending a delayed reject minutes afterwards
    318:26:52 < sipa> roasbeef: they send MSG_TX getdatas instead of MSG_WITNESS_TX ?
    418:27:11 < roasbeef> sipa: yeh
    

    Expected behaviour

    Don’t see any MSG_TX getdatas between witness-enabled peers.

    Actual behaviour

    See some MSG_TX getdatas.

    What version of bitcoin-core are you using?

    018:28:08 < chjj> sipa: seems to be both 13.0 and 13.1 nodes
    
  2. jonasschnelli added the label P2P on Nov 18, 2016
  3. MarcoFalke added this to the milestone 0.13.2 on Nov 18, 2016
  4. laanwj referenced this in commit 65a07707ec on Dec 2, 2016
  5. laanwj added the label Needs backport on Dec 2, 2016
  6. laanwj referenced this in commit ca1fd7521e on Dec 2, 2016
  7. MarcoFalke removed the label Needs backport on Dec 11, 2016
  8. btcdrak commented at 10:49 am on December 17, 2016: contributor
    This can be closed now.
  9. MarcoFalke closed this on Dec 17, 2016

  10. MarcoFalke locked this on Sep 8, 2021


sipa btcdrak

Labels
P2P

Milestone
0.13.2


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: 2024-11-24 03:12 UTC

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