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, whisper: (this.blockchainConfig.whisper === undefined) || this.blockchainConfig.whisper,
maxpeers: ((this.blockchainConfig.maxpeers === 0) ? 0 : (this.blockchainConfig.maxpeers || 25)), maxpeers: ((this.blockchainConfig.maxpeers === 0) ? 0 : (this.blockchainConfig.maxpeers || 25)),
bootnodes: this.blockchainConfig.bootnodes || "", 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, wsRPC: (this.blockchainConfig.wsRPC === undefined) || this.blockchainConfig.wsRPC,
wsHost: this.blockchainConfig.wsHost || 'localhost', wsHost: this.blockchainConfig.wsHost || 'localhost',
wsPort: this.blockchainConfig.wsPort || 8546, wsPort: this.blockchainConfig.wsPort || 8546,
wsOrigins: this.blockchainConfig.wsOrigins || false, 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, vmdebug: this.blockchainConfig.vmdebug || false,
targetGasLimit: this.blockchainConfig.targetGasLimit || false, targetGasLimit: this.blockchainConfig.targetGasLimit || false,
syncMode: this.blockchainConfig.syncMode, syncMode: this.blockchainConfig.syncMode,

View File

@ -21,7 +21,7 @@ describe('embark.Blockchain', function () {
mineWhenNeeded: false, mineWhenNeeded: false,
rpcHost: 'localhost', rpcHost: 'localhost',
rpcPort: 8545, rpcPort: 8545,
rpcApi: ['eth', 'web3', 'net'], rpcApi: ['eth', 'web3', 'net', 'debug'],
rpcCorsDomain: false, rpcCorsDomain: false,
networkId: 12301, networkId: 12301,
port: 30303, port: 30303,
@ -32,7 +32,7 @@ describe('embark.Blockchain', function () {
whisper: true, whisper: true,
account: {}, account: {},
bootnodes: "", bootnodes: "",
wsApi: ["eth", "web3", "net", "shh"], wsApi: ["eth", "web3", "net", "shh", "debug"],
wsHost: "localhost", wsHost: "localhost",
wsOrigins: false, wsOrigins: false,
wsPort: 8546, wsPort: 8546,
@ -63,7 +63,7 @@ describe('embark.Blockchain', function () {
mineWhenNeeded: true, mineWhenNeeded: true,
rpcHost: 'someserver', rpcHost: 'someserver',
rpcPort: 12345, rpcPort: 12345,
rpcApi: ['eth', 'web3', 'net'], rpcApi: ['eth', 'web3', 'net', 'debug'],
rpcCorsDomain: true, rpcCorsDomain: true,
networkId: 1, networkId: 1,
port: 123456, port: 123456,
@ -74,7 +74,7 @@ describe('embark.Blockchain', function () {
whisper: false, whisper: false,
account: {}, account: {},
bootnodes: "", bootnodes: "",
wsApi: ["eth", "web3", "net", "shh"], wsApi: ["eth", "web3", "net", "shh", "debug"],
wsHost: "localhost", wsHost: "localhost",
wsOrigins: false, wsOrigins: false,
wsPort: 8546, wsPort: 8546,