From 76ab3305463016efb4c1e21d83191a2134410f95 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 18 Jun 2018 09:44:16 -0400 Subject: [PATCH] add debug option --- lib/cmds/blockchain/blockchain.js | 4 ++-- test/blockchain.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/cmds/blockchain/blockchain.js b/lib/cmds/blockchain/blockchain.js index 767f04c0..f2e9cf99 100644 --- a/lib/cmds/blockchain/blockchain.js +++ b/lib/cmds/blockchain/blockchain.js @@ -36,12 +36,12 @@ var Blockchain = function(options) { whisper: (this.blockchainConfig.whisper === undefined) || this.blockchainConfig.whisper, maxpeers: ((this.blockchainConfig.maxpeers === 0) ? 0 : (this.blockchainConfig.maxpeers || 25)), bootnodes: this.blockchainConfig.bootnodes || "", - rpcApi: (this.blockchainConfig.rpcApi || ['eth', 'web3', 'net']), + rpcApi: (this.blockchainConfig.rpcApi || ['eth', 'web3', 'net', 'debug']), wsRPC: (this.blockchainConfig.wsRPC === undefined) || this.blockchainConfig.wsRPC, wsHost: this.blockchainConfig.wsHost || 'localhost', wsPort: this.blockchainConfig.wsPort || 8546, wsOrigins: this.blockchainConfig.wsOrigins || false, - wsApi: (this.blockchainConfig.wsApi || ['eth', 'web3', 'net', 'shh']), + wsApi: (this.blockchainConfig.wsApi || ['eth', 'web3', 'net', 'shh', 'debug']), vmdebug: this.blockchainConfig.vmdebug || false, targetGasLimit: this.blockchainConfig.targetGasLimit || false, syncMode: this.blockchainConfig.syncMode, diff --git a/test/blockchain.js b/test/blockchain.js index cc92ac35..12bde854 100644 --- a/test/blockchain.js +++ b/test/blockchain.js @@ -21,7 +21,7 @@ describe('embark.Blockchain', function () { mineWhenNeeded: false, rpcHost: 'localhost', rpcPort: 8545, - rpcApi: ['eth', 'web3', 'net'], + rpcApi: ['eth', 'web3', 'net', 'debug'], rpcCorsDomain: false, networkId: 12301, port: 30303, @@ -32,7 +32,7 @@ describe('embark.Blockchain', function () { whisper: true, account: {}, bootnodes: "", - wsApi: ["eth", "web3", "net", "shh"], + wsApi: ["eth", "web3", "net", "shh", "debug"], wsHost: "localhost", wsOrigins: false, wsPort: 8546, @@ -63,7 +63,7 @@ describe('embark.Blockchain', function () { mineWhenNeeded: true, rpcHost: 'someserver', rpcPort: 12345, - rpcApi: ['eth', 'web3', 'net'], + rpcApi: ['eth', 'web3', 'net', 'debug'], rpcCorsDomain: true, networkId: 1, port: 123456, @@ -74,7 +74,7 @@ describe('embark.Blockchain', function () { whisper: false, account: {}, bootnodes: "", - wsApi: ["eth", "web3", "net", "shh"], + wsApi: ["eth", "web3", "net", "shh", "debug"], wsHost: "localhost", wsOrigins: false, wsPort: 8546,