aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-06-07 09:24:18 -0400
committerMarcoFalke <falke.marco@gmail.com>2020-06-21 11:35:46 -0400
commitfac6ef4fb2bbe6187a52d716eab734d0b1e9a221 (patch)
treed2c7a972879148907af7806996ba85c3560652d2 /test
parentffff3fe50a16bd7dde3d2d206bbe7bc41c483bb8 (diff)
test: Add test for no net permission
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/p2p_permissions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/p2p_permissions.py b/test/functional/p2p_permissions.py
index 2c200fccad..bea202855d 100755
--- a/test/functional/p2p_permissions.py
+++ b/test/functional/p2p_permissions.py
@@ -43,6 +43,12 @@ class P2PPermissionsTests(BitcoinTestFramework):
True)
self.checkpermission(
+ # no permission (even with forcerelay)
+ ["-whitelist=@127.0.0.1", "-whitelistforcerelay=1"],
+ [],
+ False)
+
+ self.checkpermission(
# relay permission removed (no specific permissions)
["-whitelist=127.0.0.1", "-whitelistrelay=0"],
["noban", "mempool"],