diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-10-26 17:22:06 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-11-21 21:09:37 +0800 |
commit | 7abf968d6fbc5955fedac6f3aba27afdca02176f (patch) | |
tree | 4f7154fa982e867c283b4f0e76969419374fc297 | |
parent | 6eb38e02a8e3bd39ba155df0b40560e384e2c6f4 (diff) | |
download | dexon-7abf968d6fbc5955fedac6f3aba27afdca02176f.tar dexon-7abf968d6fbc5955fedac6f3aba27afdca02176f.tar.gz dexon-7abf968d6fbc5955fedac6f3aba27afdca02176f.tar.bz2 dexon-7abf968d6fbc5955fedac6f3aba27afdca02176f.tar.lz dexon-7abf968d6fbc5955fedac6f3aba27afdca02176f.tar.xz dexon-7abf968d6fbc5955fedac6f3aba27afdca02176f.tar.zst dexon-7abf968d6fbc5955fedac6f3aba27afdca02176f.zip |
cmd/puppeth: skip genesis custom extra-data
-rw-r--r-- | cmd/puppeth/wizard_genesis.go | 11 | ||||
-rw-r--r-- | cmd/puppeth/wizard_intro.go | 2 |
2 files changed, 1 insertions, 12 deletions
diff --git a/cmd/puppeth/wizard_genesis.go b/cmd/puppeth/wizard_genesis.go index a9817d1ed..e98b9a81d 100644 --- a/cmd/puppeth/wizard_genesis.go +++ b/cmd/puppeth/wizard_genesis.go @@ -118,22 +118,11 @@ func (w *wizard) makeGenesis() { for i := int64(0); i < 256; i++ { genesis.Alloc[common.BigToAddress(big.NewInt(i))] = core.GenesisAccount{Balance: big.NewInt(1)} } - fmt.Println() - // Query the user for some custom extras fmt.Println() fmt.Println("Specify your chain/network ID if you want an explicit one (default = random)") genesis.Config.ChainId = new(big.Int).SetUint64(uint64(w.readDefaultInt(rand.Intn(65536)))) - fmt.Println() - fmt.Println("Anything fun to embed into the genesis block? (max 32 bytes)") - - extra := w.read() - if len(extra) > 32 { - extra = extra[:32] - } - genesis.ExtraData = append([]byte(extra), genesis.ExtraData[len(extra):]...) - // All done, store the genesis and flush to disk w.conf.genesis = genesis } diff --git a/cmd/puppeth/wizard_intro.go b/cmd/puppeth/wizard_intro.go index 005ee47a5..10d8db75d 100644 --- a/cmd/puppeth/wizard_intro.go +++ b/cmd/puppeth/wizard_intro.go @@ -64,7 +64,7 @@ func (w *wizard) run() { for { w.network = w.readString() if !strings.Contains(w.network, " ") { - fmt.Printf("Sweet, you can set this via --network=%s next time!\n\n", w.network) + fmt.Printf("\nSweet, you can set this via --network=%s next time!\n\n", w.network) break } log.Error("I also like to live dangerously, still no spaces") |