aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-09 06:26:43 +0800
committerobscuren <geffobscura@gmail.com>2014-02-09 06:26:43 +0800
commit9ac81c5b2b8304fe8e1efed7298998f36267612b (patch)
tree8229e796c1e6601bdf1cf43dc6412dce4cf2e765
parent7b7242b9ea85ccdcc29dc9b515eb2d2776e2b50d (diff)
downloadgo-tangerine-9ac81c5b2b8304fe8e1efed7298998f36267612b.tar
go-tangerine-9ac81c5b2b8304fe8e1efed7298998f36267612b.tar.gz
go-tangerine-9ac81c5b2b8304fe8e1efed7298998f36267612b.tar.bz2
go-tangerine-9ac81c5b2b8304fe8e1efed7298998f36267612b.tar.lz
go-tangerine-9ac81c5b2b8304fe8e1efed7298998f36267612b.tar.xz
go-tangerine-9ac81c5b2b8304fe8e1efed7298998f36267612b.tar.zst
go-tangerine-9ac81c5b2b8304fe8e1efed7298998f36267612b.zip
Proper keys
-rw-r--r--dev_console.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/dev_console.go b/dev_console.go
index d2f3befb2..64a40a1c4 100644
--- a/dev_console.go
+++ b/dev_console.go
@@ -149,8 +149,9 @@ func (i *Console) ParseInput(input string) bool {
fmt.Println("recipient err:", err)
} else {
tx := ethchain.NewTransaction(recipient, ethutil.Big(tokens[2]), []string{""})
- privKey, _ := ethutil.Config.Db.Get([]byte("KeyRing"))
- tx.Sign(privKey)
+ data, _ := ethutil.Config.Db.Get([]byte("KeyRing"))
+ keyRing := ethutil.NewValueFromBytes(data)
+ tx.Sign(keyRing.Get(0).Bytes())
fmt.Printf("%x\n", tx.Hash())
i.ethereum.TxPool.QueueTransaction(tx)
}