From 0d9c948b9b2c5eef6f0069f9aa05e9868f939444 Mon Sep 17 00:00:00 2001 From: Maran Date: Wed, 14 May 2014 12:24:49 +0200 Subject: [PATCH] Generate coinbase from privatekey, not pubkey. Partily fixes #43 --- ethereum/ethereum.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum/ethereum.go b/ethereum/ethereum.go index babebbb4822b..055cc0bc4293 100644 --- a/ethereum/ethereum.go +++ b/ethereum/ethereum.go @@ -138,7 +138,7 @@ func main() { go func() { data, _ := ethutil.Config.Db.Get([]byte("KeyRing")) keyRing := ethutil.NewValueFromBytes(data) - addr := keyRing.Get(1).Bytes() + addr := keyRing.Get(0).Bytes() pair, _ := ethchain.NewKeyPairFromSec(ethutil.FromHex(hex.EncodeToString(addr)))