From 9ac81c5b2b8304fe8e1efed7298998f36267612b Mon Sep 17 00:00:00 2001 From: obscuren Date: Sat, 8 Feb 2014 23:26:43 +0100 Subject: [PATCH] Proper keys --- dev_console.go | 5 +++-- 1 file 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) }