Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p_permissions.py
Show All 27 Lines | def run_test(self): | ||||
# default permissions (no specific permissions) | # default permissions (no specific permissions) | ||||
["-whitelist=127.0.0.1"], | ["-whitelist=127.0.0.1"], | ||||
# Make sure the default values in the command line documentation | # Make sure the default values in the command line documentation | ||||
# match the ones here | # match the ones here | ||||
["relay", "noban", "mempool", "download"], | ["relay", "noban", "mempool", "download"], | ||||
True) | True) | ||||
self.checkpermission( | self.checkpermission( | ||||
# no permission (even with forcerelay) | |||||
["-whitelist=@127.0.0.1", "-whitelistforcerelay=1"], | |||||
[], | |||||
False) | |||||
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"], | ||||
["noban", "mempool", "download"], | ["noban", "mempool", "download"], | ||||
True) | True) | ||||
self.checkpermission( | self.checkpermission( | ||||
# forcerelay and relay permission added | # forcerelay and relay permission added | ||||
# Legacy parameter interaction which set whitelistrelay to true | # Legacy parameter interaction which set whitelistrelay to true | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |