aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authornicolas.dorier <nicolas.dorier@gmail.com>2019-08-16 17:45:13 +0900
committernicolas.dorier <nicolas.dorier@gmail.com>2019-08-17 00:43:22 +0900
commitce7eac3cb0e7d301db75de24e9a7b0af93c61311 (patch)
tree9b5f47eea93fbd73a755d810218af95654d41f6b /test/functional
parentb80cdfec9a079b841194c7026faddbd496e1dfc0 (diff)
[Fix] The default whitelistrelay should be true
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/p2p_permissions.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/functional/p2p_permissions.py b/test/functional/p2p_permissions.py
index 1013055420..24bd8cae95 100644
--- a/test/functional/p2p_permissions.py
+++ b/test/functional/p2p_permissions.py
@@ -22,13 +22,20 @@ class P2PPermissionsTests(BitcoinTestFramework):
self.extra_args = [[],[]]
def run_test(self):
+
self.checkpermission(
- # relay permission added
- ["-whitelist=127.0.0.1", "-whitelistrelay"],
+ # default permissions (no specific permissions)
+ ["-whitelist=127.0.0.1"],
["relay", "noban", "mempool"],
True)
self.checkpermission(
+ # relay permission removed (no specific permissions)
+ ["-whitelist=127.0.0.1", "-whitelistrelay=0"],
+ ["noban", "mempool"],
+ True)
+
+ self.checkpermission(
# forcerelay and relay permission added
# Legacy parameter interaction which set whitelistrelay to true
# if whitelistforcerelay is true