aboutsummaryrefslogtreecommitdiffstats
path: root/dev_console.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-09 05:07:17 +0800
committerobscuren <geffobscura@gmail.com>2014-02-09 05:07:17 +0800
commitf1ba1df16565614fdf04392463191f9c276270d4 (patch)
tree6a7dbdcb55601d64f0f929b5137af8825a66e6a3 /dev_console.go
parent827f341c97e9243b0c04a2fbde363b949bc3215d (diff)
downloadgo-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.go3
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)
}