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

poc8
Maran 11 years ago
parent faa3073625
commit 0d9c948b9b
  1. 2
      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)))

Loading…
Cancel
Save