aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_permissions.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/p2p_permissions.py')
-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