diff options
author | Maran <maran.hidskes@gmail.com> | 2014-05-14 18:24:49 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-05-14 18:24:49 +0800 |
commit | 0d9c948b9b2c5eef6f0069f9aa05e9868f939444 (patch) | |
tree | a297d09f3d0a25aff5cd0200918b2ab24e1b1f4d /ethereum | |
parent | faa307362543bb89f10458e83aa03c557977937f (diff) | |
download | dexon-0d9c948b9b2c5eef6f0069f9aa05e9868f939444.tar.gz dexon-0d9c948b9b2c5eef6f0069f9aa05e9868f939444.tar.zst dexon-0d9c948b9b2c5eef6f0069f9aa05e9868f939444.zip |
Generate coinbase from privatekey, not pubkey. Partily fixes #43
Diffstat (limited to 'ethereum')
-rw-r--r-- | ethereum/ethereum.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethereum/ethereum.go b/ethereum/ethereum.go index babebbb48..055cc0bc4 100644 --- a/ethereum/ethereum.go +++ b/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))) |