diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-07-06 16:59:41 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-07-06 16:59:41 +0800 |
commit | b533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d (patch) | |
tree | 6cd1903af6d8d645e6f3bf4defbaa65c35c6fd88 /xeth/xeth.go | |
parent | 35add89c879dd1d12e7ed702d7543f5a749a1d3e (diff) | |
parent | ec9620fb2f375379d3404a834a3350089702648a (diff) | |
download | go-tangerine-b533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d.tar.gz go-tangerine-b533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d.tar.zst go-tangerine-b533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d.zip |
Merge pull request #1409 from fjl/fix-tx-hash
core/types, xeth: separate tx hash and tx signature hash
Diffstat (limited to 'xeth/xeth.go')
-rw-r--r-- | xeth/xeth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go index 88d802820..4bd18a2f6 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -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 |