add debug option

This commit is contained in:
Iuri Matias 2018-06-18 09:44:16 -04:00
parent f9e62b9f49
commit 76ab330546
2 changed files with 6 additions and 6 deletions

View File

@ -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,

View File

@ -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,