xeth: don't sign transactions for tx call

This should make calls faster and removes interaction
with account manager.
This commit is contained in:
Felix Lange
2015-03-09 18:04:40 +01:00
parent 2ee88a220a
commit b4fa94c4b1
2 changed files with 32 additions and 27 deletions

View File

@ -269,7 +269,7 @@ func (p *EthereumApi) Transact(args *NewTxArgs, reply *interface{}) error {
}
func (p *EthereumApi) Call(args *NewTxArgs, reply *interface{}) error {
result, err := p.xeth().Call( /* TODO specify account */ args.To, args.Value, args.Gas, args.GasPrice, args.Data)
result, err := p.xeth().Call(args.From, args.To, args.Value, args.Gas, args.GasPrice, args.Data)
if err != nil {
return err
}