aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eth/backend.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 5e87724b0..e2b7fab16 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -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())