-
Notifications
You must be signed in to change notification settings - Fork 38.7k
[tests] Test disconnecting unsupported service bits logic. #11001
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
In v0.15, we disconnect nodes that send us version messages with unsupported service bits (1 << 5 and 1 << 7). This commit adds a test that bitcoind will disconnect those nodes before August 1st 2018, and won't disconnect those nodes after August 1st 2018.
|
Thanks, looks good to me.
…On August 7, 2017 8:41:21 AM PDT, John Newbery ***@***.***> wrote:
In v0.15, we disconnect nodes that send us version messages with
unsupported service bits (1 << 5 and 1 << 7). This commit adds a test
that bitcoind will disconnect those nodes before August 1st 2018, and
won't
disconnect those nodes after August 1st 2018.
@sdaftuar @TheBlueMatt
You can view, comment on, or merge this pull request online at:
#11001
-- Commit Summary --
* [tests] Test disconnecting unsupported service bits logic.
-- File Changes --
M test/functional/p2p-leaktests.py (34)
M test/functional/test_framework/mininode.py (2)
-- Patch Links --
https://github.com/bitcoin/bitcoin/pull/11001.patch
https://github.com/bitcoin/bitcoin/pull/11001.diff
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#11001
|
|
utACK 5e35cd9 |
5e35cd9 [tests] Test disconnecting unsupported service bits logic. (John Newbery) Pull request description: In v0.15, we disconnect nodes that send us version messages with unsupported service bits (1 << 5 and 1 << 7). This commit adds a test that bitcoind will disconnect those nodes before August 1st 2018, and won't disconnect those nodes after August 1st 2018. @sdaftuar @TheBlueMatt Tree-SHA512: cb1bf311f9edc4aa5acf621e392543fd92952b2462ae2a8c20339e5c41e67ece1a2a9ede38db5dcd16563faa9ee58318e118f54024dd282c580132202d2df01b
|
Why not relax the rule to instead allow for a maximum of e.g. 3 connections to nodes with the service bits 5 and 7? That way the network may stay fully connected both before and after a 2x HF in three months. |
|
This was meant as a minimal fix/diff to be included in the first release candidate of 0.15.0, which was already due last Sunday. Beside the additional review required for more complex changes to p2p logic, it is unlikely that a more involved fix makes it into 0.15.0. Code cleanup for 0.16.0 is welcome, though. |
|
The 2x/Bitcoin networks will stay trivially connected through the next few months. There is no chance that everyone running 0.13/0.14 nodes will upgrade to 15 that quickly - we've never seen upgrades anywhere near that fast in the past, even when there was more incentive to do so.
…On August 9, 2017 4:26:17 AM PDT, bmagn ***@***.***> wrote:
Why not relax the rule to instead allow for a maximum of e.g. 3
connections to nodes with the service bits 5 and 7? That way the
network may stay fully connected both before and after a 2x HF in three
months.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#11001 (comment)
|
|
Please can we lock this PR? This PR added a new functional test case and is not the place to discuss the merits/demerits of the node disconnection behaviour in 10982. Thanks! |
0063d2c [tests] Make p2p-leaktests.py more robust (John Newbery) Pull request description: There has been an example of p2p-leaktests.py failing on travis in the new service bits test (introduced in #11001 . It appeared to me that the previous p2p connections had not been fully disconnected before attempting to add new p2p connections. I've added a sleep and restarted the NetworkThread, but I don't know whether this will fix the problem, since I'm unable to reproduce the failure locally. @MarcoFalke - not sure what you want to do here? I don't think this change could make things any worse. Tree-SHA512: f5427c26267185a903c9b75bb3925bf153b8afce70c8e493bf8f585f57d809d20643b4ee69081300b211d22e960242aecc3d719f4ddd230aa08fdc5484b55055
0063d2c [tests] Make p2p-leaktests.py more robust (John Newbery) Pull request description: There has been an example of p2p-leaktests.py failing on travis in the new service bits test (introduced in bitcoin#11001 . It appeared to me that the previous p2p connections had not been fully disconnected before attempting to add new p2p connections. I've added a sleep and restarted the NetworkThread, but I don't know whether this will fix the problem, since I'm unable to reproduce the failure locally. @MarcoFalke - not sure what you want to do here? I don't think this change could make things any worse. Tree-SHA512: f5427c26267185a903c9b75bb3925bf153b8afce70c8e493bf8f585f57d809d20643b4ee69081300b211d22e960242aecc3d719f4ddd230aa08fdc5484b55055
0063d2c [tests] Make p2p-leaktests.py more robust (John Newbery) Pull request description: There has been an example of p2p-leaktests.py failing on travis in the new service bits test (introduced in bitcoin#11001 . It appeared to me that the previous p2p connections had not been fully disconnected before attempting to add new p2p connections. I've added a sleep and restarted the NetworkThread, but I don't know whether this will fix the problem, since I'm unable to reproduce the failure locally. @MarcoFalke - not sure what you want to do here? I don't think this change could make things any worse. Tree-SHA512: f5427c26267185a903c9b75bb3925bf153b8afce70c8e493bf8f585f57d809d20643b4ee69081300b211d22e960242aecc3d719f4ddd230aa08fdc5484b55055
In v0.15, we disconnect nodes that send us version messages with
unsupported service bits (1 << 5 and 1 << 7). This commit adds a test
that bitcoind will disconnect those nodes before August 1st 2018, and won't
disconnect those nodes after August 1st 2018.
@sdaftuar @TheBlueMatt