Comments (7)
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.
zilm13,Thanks for your comment.
I have started the miner.
from ethereum-harmony.
But how to add parameter recieved Account to miner_start?
from ethereum-harmony.
@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.
@zilm13 Thanks again,it is clear.
from ethereum-harmony.
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.
@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)
- Strip off json-rpc filter data HOT 1
- The console cannot see the log output HOT 1
- How could i get a account`s tx history from here or ethereumj HOT 2
- Support bzz json rpc
- Integrate with retesteth tool
- Access control HOT 5
- why ethereum.getRepository().getCode(address) always return nothing? HOT 2
- block sync problem. HOT 8
- stuck on #6,108,275 (19 hours ago) HOT 4
- runPrivate fails while runMain is ok, please check it. HOT 1
- can't connect harmony server because of CLOSE_WAIT state(netstat)
- Build Failure: DataWord(byte[]) has private access in DataWord HOT 8
- Harmony should start EthereumJ only by request
- ContractData should be completely disabled when contract module off HOT 1
- Missing file `org/ethereum/vm/VMHook.class` HOT 1
- calling eth_call on contracts doesnt work
- Past releases HOT 5
- logIdx is calculated incorrectly
- Can sb tell me why this error happened,this error happend constantly in System Logs module , it seems like RLP problem when sync data to another node HOT 7
- maven com.ethercamp:contract-data:1.9.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ethereum-harmony.