Skip to content

Commit

Permalink
Generate coinbase from privatekey, not pubkey. Partily fixes #43
Browse files Browse the repository at this point in the history
  • Loading branch information
Maran committed May 14, 2014
1 parent faa3073 commit 0d9c948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethereum/ethereum.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down

0 comments on commit 0d9c948

Please sign in to comment.