mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-23 11:28:14 +00:00
Generate coinbase from privatekey, not pubkey. Partily fixes #43
This commit is contained in:
parent
faa3073625
commit
0d9c948b9b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue