Merge pull request #1409 from fjl/fix-tx-hash

core/types, xeth: separate tx hash and tx signature hash
This commit is contained in:
Jeffrey Wilcke
2015-07-06 01:59:41 -07:00
3 changed files with 17 additions and 9 deletions

View File

@ -977,7 +977,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