Commit 73a576c9 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke

Merge pull request #1524 from obscuren/default-extra

eth: set default miner extra to client name
parents 665eaff9 3adaeb1d
......@@ -368,6 +368,13 @@ func New(config *Config) (*Ethereum, error) {
eth.miner = miner.New(eth, eth.EventMux(), eth.pow)
eth.miner.SetGasPrice(config.GasPrice)
extra := config.Name
if len(extra) > 1024 {
extra = extra[:1024]
}
eth.miner.SetExtra([]byte(extra))
if config.Shh {
eth.whisper = whisper.New()
eth.shhVersionId = int(eth.whisper.Version())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment