mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
test: Add test for no net permission
This commit is contained in:
parent
ffff3fe50a
commit
fac6ef4fb2
1 changed files with 6 additions and 0 deletions
|
|
@ -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"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue