Generate coinbase from privatekey, not pubkey. Partily fixes #43

This commit is contained in:
Maran 2014-05-14 12:24:49 +02:00
parent faa3073625
commit 0d9c948b9b

View File

@ -138,7 +138,7 @@ func main() {
go func() { go func() {
data, _ := ethutil.Config.Db.Get([]byte("KeyRing")) data, _ := ethutil.Config.Db.Get([]byte("KeyRing"))
keyRing := ethutil.NewValueFromBytes(data) keyRing := ethutil.NewValueFromBytes(data)
addr := keyRing.Get(1).Bytes() addr := keyRing.Get(0).Bytes()
pair, _ := ethchain.NewKeyPairFromSec(ethutil.FromHex(hex.EncodeToString(addr))) pair, _ := ethchain.NewKeyPairFromSec(ethutil.FromHex(hex.EncodeToString(addr)))