qa: Avoid checking reject code for now #13352

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:Mf1806-qaRejectCode changing 1 files +1 −3
  1. MarcoFalke commented at 8:49 PM on May 30, 2018: member

    The node will often disconnect before sending a reject code. A more robust solution would be to read from the debug log. See #13006

  2. qa: Avoid checking reject code for now
    The node will often disconnect before sending a reject code. A more
    robust solution would be to read from the debug log.
    faac7a2db4
  3. MarcoFalke added the label Tests on May 30, 2018
  4. laanwj commented at 5:47 AM on May 31, 2018: member

    I'm divided about this. Though obviously, if this causes frequent travis errors, it's the pragmatic short thing to do on the short term. utACK faac7a2db4f9f511c901cb1b4d4e7c599b92884f

    It's more this that made me question:

    A more robust solution would be to read from the debug log. See #13006

    Shouldn't the race in the network code be fixed instead?

  5. MarcoFalke commented at 9:19 AM on May 31, 2018: member

    Shouldn't the race in the network code be fixed instead?

    Imo, we shouldn't be nice to peers that send us invalid messages. The reject messages are only best-effort and not a guarantee.

  6. laanwj commented at 8:53 PM on May 31, 2018: member

    Imo, we shouldn't be nice to peers that send us invalid messages. The reject messages are only best-effort and not a guarantee.

    I agree on that, but the race itself is somewhat scary, I'm not sure it's easy to tell whether this doesn't affect anything else.

  7. jnewbery commented at 9:14 PM on May 31, 2018: member

    I agree with @laanwj that the underlying cause should be investigated.

    Asserting on the reason for a transaction being rejected is a useful regression test. I don't think we should remove this check without a replacement like #13006

  8. MarcoFalke commented at 10:54 PM on May 31, 2018: member

    I agree with @laanwj that the underlying cause should be investigated.

    I am not familiar with net, but a blind guess would be that we tear down the node (and message buffer) because of the disconnect without flushing it first. If this was the case, I doubt this wouldn't be intended behaviour. I am not aware of any guarantees in the protocol that we give to peers that are soon-to-be-disconnected, so I don't understand why this should be investigated. Mind to elaborate a bit more?

    I don't think we should remove this check without a replacement like #13006

    Note that the test were never in place until a few days ago. So there is no loss in restoring the previous state and fixing the travis failures.

  9. laanwj commented at 11:57 AM on June 1, 2018: member

    I'm going to merge this to fix the travis failure, which seems to be really frequent.

  10. laanwj merged this on Jun 1, 2018
  11. laanwj closed this on Jun 1, 2018

  12. laanwj referenced this in commit e24bf1ce18 on Jun 1, 2018
  13. MarcoFalke deleted the branch on Jun 1, 2018
  14. jnewbery commented at 11:51 PM on June 1, 2018: member

    Note that the test were never in place until a few days ago.

    Ah. I hadn't realised that. utACK faac7a2db4f9f511c901cb1b4d4e7c599b92884f

  15. PastaPastaPasta referenced this in commit 329c56721b on Jun 14, 2020
  16. UdjinM6 referenced this in commit 085bd7fd0a on Jun 16, 2020
  17. DrahtBot 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-17 06:15 UTC

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