Skip to content

Commit

Permalink
test: Add test for no net permission
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Jun 21, 2020
1 parent ffff3fe commit fac6ef4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/functional/p2p_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ def run_test(self):
["relay", "noban", "mempool"],
True)

self.checkpermission(
# no permission (even with forcerelay)
["[email protected]", "-whitelistforcerelay=1"],
[],
False)

self.checkpermission(
# relay permission removed (no specific permissions)
["-whitelist=127.0.0.1", "-whitelistrelay=0"],
Expand Down

0 comments on commit fac6ef4

Please sign in to comment.