test: Add test for no net permission
This commit is contained in:
1 file changed
+6
@@ -42,6 +42,12 @@ class P2PPermissionsTests(BitcoinTestFramework):
|
|||||||
["relay", "noban", "mempool"],
|
["relay", "noban", "mempool"],
|
||||||
True)
|
True)
|
||||||
|
|
||||||
|
self.checkpermission(
|
||||||
|
# no permission (even with forcerelay)
|
||||||
|
["-whitelist=@127.0.0.1", "-whitelistforcerelay=1"],
|
||||||
|
[],
|
||||||
|
False)
|
||||||
|
|
||||||
self.checkpermission(
|
self.checkpermission(
|
||||||
# relay permission removed (no specific permissions)
|
# relay permission removed (no specific permissions)
|
||||||
["-whitelist=127.0.0.1", "-whitelistrelay=0"],
|
["-whitelist=127.0.0.1", "-whitelistrelay=0"],
|
||||||
|
|||||||
Reference in new issue
Block a user