提交 73a576c9 编写于 作者: J Jeffrey Wilcke

Merge pull request #1524 from obscuren/default-extra

eth: set default miner extra to client name
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册