Added key address and key generation
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user