* optimize code of rpc whitelist