mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-19 05:12:03 +02:00
test: Add test for no net permission
This commit is contained in:
parent
ffff3fe50a
commit
fac6ef4fb2
@ -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…
x
Reference in New Issue
Block a user