forked from bitpay/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add test for no net permission
- Loading branch information
MarcoFalke
committed
Jun 21, 2020
1 parent
ffff3fe
commit fac6ef4
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"], | ||
|