implement `getStartBlockchainCommand` to return geth CLI string
This commit is contained in:
parent
67861af6a5
commit
b3b1b13795
|
@ -126,4 +126,9 @@ Blockchain.prototype.execGeth = function(args) {
|
|||
exec(cmd);
|
||||
}
|
||||
|
||||
Blockchain.prototype.getStartChainCommand = function(use_tmp) {
|
||||
var address = this.get_address();
|
||||
return this.run_command(address, use_tmp);
|
||||
}
|
||||
|
||||
module.exports = Blockchain
|
||||
|
|
|
@ -35,6 +35,11 @@ Embark = {
|
|||
chain.startChain(use_tmp);
|
||||
},
|
||||
|
||||
getStartBlockchainCommand: function(env, use_tmp) {
|
||||
var chain = new Blockchain(this.blockchainConfig.config(env));
|
||||
return chain.getStartChainCommand(use_tmp);
|
||||
},
|
||||
|
||||
deployContracts: function(env, contractFiles, destFile, chainFile) {
|
||||
this.contractsConfig.init(contractFiles, env);
|
||||
|
||||
|
|
Loading…
Reference in New Issue