aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum/ethereum.go
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-05-14 18:24:49 +0800
committerMaran <maran.hidskes@gmail.com>2014-05-14 18:24:49 +0800
commit0d9c948b9b2c5eef6f0069f9aa05e9868f939444 (patch)
treea297d09f3d0a25aff5cd0200918b2ab24e1b1f4d /ethereum/ethereum.go
parentfaa307362543bb89f10458e83aa03c557977937f (diff)
downloaddexon-0d9c948b9b2c5eef6f0069f9aa05e9868f939444.tar.gz
dexon-0d9c948b9b2c5eef6f0069f9aa05e9868f939444.tar.zst
dexon-0d9c948b9b2c5eef6f0069f9aa05e9868f939444.zip
Generate coinbase from privatekey, not pubkey. Partily fixes #43
Diffstat (limited to 'ethereum/ethereum.go')
-rw-r--r--ethereum/ethereum.go2
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)))