-
Notifications
You must be signed in to change notification settings - Fork 20.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
miner.start() ,return "NULL" #15112
Comments
what miner.start(1) returns? |
|
log
|
Btw, the error is that you didn't initialize your custom chain and started mining on mainnet. From your logs:
Your genesis json needs to have a config section, like described in https://github.com/ethereum/go-ethereum#defining-the-private-genesis-state |
The parameter passed to miner.start() is the max number of threads? If not, what exactly is it? |
@trungtt1981 It is just the number of threads you use. |
I also had this problem,
|
Both the functions returns null in my case. The genesis block is created successfully, as I see it from the logs. Can someone please help. Is it because of NO transactions to mine?
|
System information
Geth version:
geth version
Geth
Version: 1.6.7-stable
Git Commit: ab5646c
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.8.1
Operating System: linux
GOPATH=
GOROOT=/usr/lib/go-1.8
OS & Version:
xiaoyu@xiaoyu-VirtualBox:~$ uname -a
Linux xiaoyu-VirtualBox 4.10.0-19-generic #21-Ubuntu SMP Thu Apr 6 17:04:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Commit hash : (if
develop
)Expected behaviour
when i run
miner.start()
, it wil returntrue
orfalse
, BUT it returnnull
Actual behaviour
Steps to reproduce the behaviour
CustomGenesis.json
Backtrace
The text was updated successfully, but these errors were encountered: