def METHOD_NAME(self):
    self.wallet = MiniWallet(self.nodes[0])
    self.check_tx_relay()
    self.checkpermission(
        # default permissions (no specific permissions)
        ["-whitelist=127.0.0.1"],
        # Make sure the default values in the command line documentation match the ones here
        ["relay", "noban", "mempool", "download"])
    self.checkpermission(
        # no permission (even with forcerelay)
        ["-whitelist=@127.0.0.1", "-whitelistforcerelay=1"],
        [])
    self.checkpermission(
        # relay permission removed (no specific permissions)
        ["-whitelist=127.0.0.1", "-whitelistrelay=0"],
        ["noban", "mempool", "download"])
    self.checkpermission(
        # forcerelay and relay permission added
        # Legacy parameter interaction which set whitelistrelay to true
        # if whitelistforcerelay is true
        ["-whitelist=127.0.0.1", "-whitelistforcerelay"],
        ["forcerelay", "relay", "noban", "mempool", "download"])
    # Let's make sure permissions are merged correctly
    # For this, we need to use whitebind instead of bind
    # by modifying the configuration file.
    ip_port = "127.0.0.1:{}".format(p2p_port(1))
    self.nodes[1].replace_in_config([("bind=127.0.0.1", "whitebind=bloomfilter,forcerelay@" + ip_port)])
    self.checkpermission(
        ["-whitelist=noban@127.0.0.1"],
        # Check parameter interaction forcerelay should activate relay
        ["noban", "bloomfilter", "forcerelay", "relay", "download"])
    self.nodes[1].replace_in_config([("whitebind=bloomfilter,forcerelay@" + ip_port, "bind=127.0.0.1")])
    self.checkpermission(
        # legacy whitelistrelay should be ignored
        ["-whitelist=noban,mempool@127.0.0.1", "-whitelistrelay"],
        ["noban", "mempool", "download"])
    self.checkpermission(
        # legacy whitelistforcerelay should be ignored
        ["-whitelist=noban,mempool@127.0.0.1", "-whitelistforcerelay"],
        ["noban", "mempool", "download"])
    self.checkpermission(
        # missing mempool permission to be considered legacy whitelisted
        ["-whitelist=noban@127.0.0.1"],
        ["noban", "download"])
    self.checkpermission(
        # all permission added
        ["-whitelist=all@127.0.0.1"],
        ["forcerelay", "noban", "mempool", "bloomfilter", "relay", "download", "addr"])
    self.stop_node(1)
    self.nodes[1].assert_start_raises_init_error(["-whitelist=oopsie@127.0.0.1"], "Invalid P2P permission", match=ErrorMatch.PARTIAL_REGEX)
    self.nodes[1].assert_start_raises_init_error(["-whitelist=noban@127.0.0.1:230"], "Invalid netmask specified in", match=ErrorMatch.PARTIAL_REGEX)
    self.nodes[1].assert_start_raises_init_error(["-whitebind=noban@127.0.0.1/10"], "Cannot resolve -whitebind address", match=ErrorMatch.PARTIAL_REGEX)
    self.nodes[1].assert_start_raises_init_error(["-whitebind=noban@127.0.0.1", "-bind=127.0.0.1", "-listen=0"], "Cannot set -bind or -whitebind together with -listen=0", match=ErrorMatch.PARTIAL_REGEX)