diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-09 05:07:17 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-09 05:07:17 +0800 |
commit | f1ba1df16565614fdf04392463191f9c276270d4 (patch) | |
tree | 6a7dbdcb55601d64f0f929b5137af8825a66e6a3 /dev_console.go | |
parent | 827f341c97e9243b0c04a2fbde363b949bc3215d (diff) | |
download | go-tangerine-f1ba1df16565614fdf04392463191f9c276270d4.tar go-tangerine-f1ba1df16565614fdf04392463191f9c276270d4.tar.gz go-tangerine-f1ba1df16565614fdf04392463191f9c276270d4.tar.bz2 go-tangerine-f1ba1df16565614fdf04392463191f9c276270d4.tar.lz go-tangerine-f1ba1df16565614fdf04392463191f9c276270d4.tar.xz go-tangerine-f1ba1df16565614fdf04392463191f9c276270d4.tar.zst go-tangerine-f1ba1df16565614fdf04392463191f9c276270d4.zip |
Added key address and key generation
Diffstat (limited to 'dev_console.go')
-rw-r--r-- | dev_console.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dev_console.go b/dev_console.go index 8ef7341b2..d2f3befb2 100644 --- a/dev_console.go +++ b/dev_console.go @@ -149,7 +149,8 @@ func (i *Console) ParseInput(input string) bool { fmt.Println("recipient err:", err) } else { tx := ethchain.NewTransaction(recipient, ethutil.Big(tokens[2]), []string{""}) - tx.Sign([]byte("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")) + privKey, _ := ethutil.Config.Db.Get([]byte("KeyRing")) + tx.Sign(privKey) fmt.Printf("%x\n", tx.Hash()) i.ethereum.TxPool.QueueTransaction(tx) } |