aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 82e57c75b..64d3ddee6 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -367,6 +367,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())