chore(@embark/geth): remove unneeded APIs

This commit is contained in:
emizzle 2019-11-22 16:23:19 +11:00 committed by Pascal Precht
parent c920bd5e14
commit 6f9e82d8b9
2 changed files with 5 additions and 16 deletions

View File

@ -13,8 +13,8 @@ const DEFAULTS = {
"NETWORK_TYPE": "custom", "NETWORK_TYPE": "custom",
"NETWORK_ID": 1337, "NETWORK_ID": 1337,
"RPC_API": ['eth', 'web3', 'net', 'debug', 'personal'], "RPC_API": ['eth', 'web3', 'net', 'debug', 'personal'],
"WS_API": ['eth', 'web3', 'net', 'shh', 'debug', 'pubsub', 'personal'], "WS_API": ['eth', 'web3', 'net', 'debug', 'pubsub', 'personal'],
"DEV_WS_API": ['eth', 'web3', 'net', 'shh', 'debug', 'pubsub', 'personal'], "DEV_WS_API": ['eth', 'web3', 'net', 'debug', 'pubsub', 'personal'],
"TARGET_GAS_LIMIT": 8000000 "TARGET_GAS_LIMIT": 8000000
}; };
@ -325,17 +325,6 @@ class GethClient {
} }
callback(""); callback("");
}, },
function whisper(callback) {
if (config.whisper) {
rpc_api.push('shh');
if (ws_api.indexOf('shh') === -1) {
ws_api.push('shh');
}
args.push("--shh");
return callback(null, "--shh ");
}
callback("");
},
function rpcApi(callback) { function rpcApi(callback) {
args.push('--rpcapi=' + rpc_api.join(',')); args.push('--rpcapi=' + rpc_api.join(','));
callback(null, '--rpcapi=' + rpc_api.join(',')); callback(null, '--rpcapi=' + rpc_api.join(','));

View File

@ -9,9 +9,9 @@ const DEFAULTS = {
"VERSIONS_SUPPORTED": ">=1.9.7", "VERSIONS_SUPPORTED": ">=1.9.7",
"NETWORK_TYPE": "custom", "NETWORK_TYPE": "custom",
"NETWORK_ID": 1337, "NETWORK_ID": 1337,
"RPC_API": ['eth', 'web3', 'net', 'debug', 'personal'], "RPC_API": ['web3'],
"WS_API": ['eth', 'web3', 'net', 'shh', 'debug', 'pubsub', 'personal'], "WS_API": ['web3', 'shh'],
"DEV_WS_API": ['eth', 'web3', 'net', 'shh', 'debug', 'pubsub', 'personal'], "DEV_WS_API": ['web3', 'shh'],
"TARGET_GAS_LIMIT": 8000000 "TARGET_GAS_LIMIT": 8000000
}; };