Giter Club home page Giter Club logo

Comments (7)

zilm13 avatar zilm13 commented on August 26, 2024

You don't need any params. Just miner_start.
Here's the way I start it from RPC:

curl -X POST --data '{"jsonrpc":"2.0","method":"miner_start","params":[],"id":67}' 

from ethereum-harmony.

lxiaodao avatar lxiaodao commented on August 26, 2024

zilm13,Thanks for your comment.
I have started the miner.

from ethereum-harmony.

lxiaodao avatar lxiaodao commented on August 26, 2024

But how to add parameter recieved Account to miner_start?

from ethereum-harmony.

zilm13 avatar zilm13 commented on August 26, 2024

@lxiaodao you should do it from config or pass params via command line.
This is default options:
https://github.com/ethereum/ethereumj/blob/develop/ethereumj-core/src/main/resources/ethereumj.conf#L282-L320
Just override what you want in custom config or pass it via command line by adding something like this
-Dmine.coinbase=dd0f441d5262eae5af597bdcb3a40e50d4e1ed1c

from ethereum-harmony.

lxiaodao avatar lxiaodao commented on August 26, 2024

@zilm13 Thanks again,it is clear.

from ethereum-harmony.

zilm13 avatar zilm13 commented on August 26, 2024

Btw I was wrong, we had methods in rpc and terminal but they were not documented. I've added it to the help (develop only for now): 8655efb

from ethereum-harmony.

lxiaodao avatar lxiaodao commented on August 26, 2024

@zilm13 I see the document after you modify. I also find a issues maybe when run the command like this gradlew runClassic -Dserver.port=7000 -Dethereumj.conf.res=E:/business/classic.conf.The parameter -Dethereumj.conf.res is not effected. Only after I modify the build.gradle like below:

def bootRunWithNetworkConfig(String name, boolean includePresets) {
    def newArgs = []
    if (includePresets) {
        addJvmArgIfEmpty "database.dir", getDatabaseDir("database-" + name)
	// change by lxiaodao 201803014
	// "ethereumj.conf.res", "E:/business/classic.conf"
	def conf_name=name;
	if(name=='classic'){
           conf_name='E:/business/classic';
	}
        newArgs.addAll([
                '-Dethereumj.conf.res=' + conf_name + '.conf',
                '-Ddatabase.name=database-' + name,
                '-DnetworkProfile=' + name])
    }

    // set heap size configure in task
    if (!project.hasProperty('jvmArgs') || project.jvmArgs.indexOf('-Xmx') == -1) {
        println('Set default heap size for task ' + maxHeapSize)
        newArgs.add(maxHeapSize)
    } else {
        println('Using heap size from user input ' + project.jvmArgs)
    }

    bootRun.jvmArgs.addAll(newArgs)
    println 'Running Java with ' + bootRun.jvmArgs

    tasks.compileJava.execute()
    tasks.bootRun.execute()
}

from ethereum-harmony.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.