core/types, xeth: separate tx hash and tx signature hash

This commit is contained in:
Felix Lange
2015-07-06 10:43:06 +02:00
parent 9c3db1be1d
commit ec9620fb2f
3 changed files with 17 additions and 9 deletions

View File

@ -978,7 +978,7 @@ func (self *XEth) Transact(fromStr, toStr, nonceStr, valueStr, gasStr, gasPriceS
}
func (self *XEth) sign(tx *types.Transaction, from common.Address, didUnlock bool) (*types.Transaction, error) {
hash := tx.Hash()
hash := tx.SigHash()
sig, err := self.doSign(from, hash, didUnlock)
if err != nil {
return tx, err