good morning!!!!

Skip to content
Snippets Groups Projects
Commit 0d9c948b authored by Maran Hidskes's avatar Maran Hidskes
Browse files

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

parent faa30736
Branches
Tags
No related merge requests found
...@@ -138,7 +138,7 @@ func main() { ...@@ -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)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment