diff --git a/lib/modules/blockchain_process/gethClient.js b/lib/modules/blockchain_process/gethClient.js index 76e952e5b..953811d7d 100644 --- a/lib/modules/blockchain_process/gethClient.js +++ b/lib/modules/blockchain_process/gethClient.js @@ -6,8 +6,8 @@ const DEFAULTS = { "BIN": "geth", "NETWORK_TYPE": "custom", "NETWORK_ID": 1337, - "RPC_API": ['eth', 'web3', 'net', 'debug'], - "WS_API": ['eth', 'web3', 'net', 'shh', 'debug', 'pubsub'], + "RPC_API": ['eth', 'web3', 'net', 'debug', 'personal'], + "WS_API": ['eth', 'web3', 'net', 'shh', 'debug', 'pubsub', 'personal'], "DEV_WS_API": ['eth', 'web3', 'net', 'shh', 'debug', 'pubsub', 'personal'], "TARGET_GAS_LIMIT": 8000000 }; diff --git a/test/blockchain.js b/test/blockchain.js index e006d1884..3bd90e578 100644 --- a/test/blockchain.js +++ b/test/blockchain.js @@ -21,7 +21,7 @@ describe('embark.Blockchain', function() { mineWhenNeeded: false, rpcHost: defaultHost, rpcPort: 8545, - rpcApi: ['eth', 'web3', 'net', 'debug'], + rpcApi: ['eth', 'web3', 'net', 'debug', "personal"], rpcCorsDomain: false, networkId: 1337, port: 30303, @@ -33,7 +33,7 @@ describe('embark.Blockchain', function() { account: {}, devPassword: "", bootnodes: "", - wsApi: ["eth", "web3", "net", "shh", "debug", "pubsub"], + wsApi: ["eth", "web3", "net", "shh", "debug", "pubsub", "personal"], wsHost: defaultHost, wsOrigins: false, wsPort: 8546, @@ -64,7 +64,7 @@ describe('embark.Blockchain', function() { mineWhenNeeded: true, rpcHost: defaultHost, rpcPort: 12345, - rpcApi: ['eth', 'web3', 'net', 'debug'], + rpcApi: ['eth', 'web3', 'net', 'debug', "personal"], rpcCorsDomain: true, networkId: 1, port: 123456, @@ -76,7 +76,7 @@ describe('embark.Blockchain', function() { account: {}, devPassword: "foo/bar/devpassword", bootnodes: "", - wsApi: ["eth", "web3", "net", "shh", "debug"], + wsApi: ["eth", "web3", "net", "shh", "debug", "personal"], wsHost: defaultHost, wsOrigins: false, wsPort: 12346, @@ -97,7 +97,7 @@ describe('embark.Blockchain', function() { mineWhenNeeded: true, rpcHost: defaultHost, rpcPort: 12345, - rpcApi: ['eth', 'web3', 'net', 'debug'], + rpcApi: ['eth', 'web3', 'net', 'debug', 'personal'], rpcCorsDomain: true, networkId: 1, port: 123456, @@ -109,7 +109,7 @@ describe('embark.Blockchain', function() { account: {}, devPassword: "foo/bar/devpassword", bootnodes: "", - wsApi: ["eth", "web3", "net", "shh", "debug"], + wsApi: ["eth", "web3", "net", "shh", "debug", "personal"], wsHost: defaultHost, wsOrigins: false, wsPort: 12346,