aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/mininode.py
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-08-07 11:37:49 -0400
committerJohn Newbery <john@johnnewbery.com>2017-08-07 11:37:54 -0400
commit5e35cd94c18d81cbcc7fdece484822841ded402c (patch)
treede0d0ce2e1585fd0e26a2585f6de99870b9a33ef /test/functional/test_framework/mininode.py
parentfa646369489d5655ac187f2a9e151317829581df (diff)
downloadbitcoin-5e35cd94c18d81cbcc7fdece484822841ded402c.tar.xz
[tests] Test disconnecting unsupported service bits logic.
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.
Diffstat (limited to 'test/functional/test_framework/mininode.py')
-rwxr-xr-xtest/functional/test_framework/mininode.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/test_framework/mininode.py b/test/functional/test_framework/mininode.py
index 688347a68f..a4d85501e7 100755
--- a/test/functional/test_framework/mininode.py
+++ b/test/functional/test_framework/mininode.py
@@ -51,6 +51,8 @@ NODE_NETWORK = (1 << 0)
NODE_GETUTXO = (1 << 1)
NODE_BLOOM = (1 << 2)
NODE_WITNESS = (1 << 3)
+NODE_UNSUPPORTED_SERVICE_BIT_5 = (1 << 5)
+NODE_UNSUPPORTED_SERVICE_BIT_7 = (1 << 7)
logger = logging.getLogger("TestFramework.mininode")