From a581efb3f06a96fc7aec0bfae03c7b6d5a0c1a77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=87=E5=B3=B0?= Date: Fri, 14 Sep 2018 13:07:27 +0800 Subject: [PATCH 1/2] ethdb: unified code comment style. --- ethdb/memory_database.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ethdb/memory_database.go b/ethdb/memory_database.go index 727f2f7ca3..6f28bae024 100644 --- a/ethdb/memory_database.go +++ b/ethdb/memory_database.go @@ -23,9 +23,7 @@ import ( "github.com/ethereum/go-ethereum/common" ) -/* - * This is a test memory database. Do not use for any production it does not get persisted - */ +// This is a test memory database. Do not use for any production, it does not get persisted. type MemDatabase struct { db map[string][]byte lock sync.RWMutex From 5e04fbccf0b8aca85030af1779bb7a949033d9d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=87=E5=B3=B0?= Date: Fri, 14 Sep 2018 14:31:50 +0800 Subject: [PATCH 2/2] puppeth: it is unnecessary to alloc pre-funded to 256 addresses --- cmd/puppeth/wizard_genesis.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/puppeth/wizard_genesis.go b/cmd/puppeth/wizard_genesis.go index 6c4cd571fb..88a12ec805 100644 --- a/cmd/puppeth/wizard_genesis.go +++ b/cmd/puppeth/wizard_genesis.go @@ -114,10 +114,6 @@ func (w *wizard) makeGenesis() { } break } - // Add a batch of precompile balances to avoid them getting deleted - for i := int64(0); i < 256; i++ { - genesis.Alloc[common.BigToAddress(big.NewInt(i))] = core.GenesisAccount{Balance: big.NewInt(1)} - } // Query the user for some custom extras fmt.Println() fmt.Println("Specify your chain/network ID if you want an explicit one (default = random)")