mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-01 03:01:09 +02:00
[Fix] The default whitelistrelay should be true
This commit is contained in:
@ -22,12 +22,19 @@ class P2PPermissionsTests(BitcoinTestFramework):
|
||||
self.extra_args = [[],[]]
|
||||
|
||||
def run_test(self):
|
||||
|
||||
self.checkpermission(
|
||||
# relay permission added
|
||||
["-whitelist=127.0.0.1", "-whitelistrelay"],
|
||||
# default permissions (no specific permissions)
|
||||
["-whitelist=127.0.0.1"],
|
||||
["relay", "noban", "mempool"],
|
||||
True)
|
||||
|
||||
self.checkpermission(
|
||||
# relay permission removed (no specific permissions)
|
||||
["-whitelist=127.0.0.1", "-whitelistrelay=0"],
|
||||
["noban", "mempool"],
|
||||
True)
|
||||
|
||||
self.checkpermission(
|
||||
# forcerelay and relay permission added
|
||||
# Legacy parameter interaction which set whitelistrelay to true
|
||||
|
Reference in New Issue
Block a user