The node will often disconnect before sending a reject code. A more robust solution would be to read from the debug log. See #13006
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-
MarcoFalke commented at 8:49 PM on May 30, 2018: member
-
faac7a2db4
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.
- MarcoFalke added the label Tests on May 30, 2018
-
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?
-
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.
-
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.
-
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.
-
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.
- laanwj merged this on Jun 1, 2018
- laanwj closed this on Jun 1, 2018
- laanwj referenced this in commit e24bf1ce18 on Jun 1, 2018
- MarcoFalke deleted the branch on Jun 1, 2018
-
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
- PastaPastaPasta referenced this in commit 329c56721b on Jun 14, 2020
- UdjinM6 referenced this in commit 085bd7fd0a on Jun 16, 2020
- DrahtBot locked this on Sep 8, 2021