aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-07-06 16:59:41 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-07-06 16:59:41 +0800
commitb533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d (patch)
tree6cd1903af6d8d645e6f3bf4defbaa65c35c6fd88 /xeth
parent35add89c879dd1d12e7ed702d7543f5a749a1d3e (diff)
parentec9620fb2f375379d3404a834a3350089702648a (diff)
downloaddexon-b533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d.tar
dexon-b533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d.tar.gz
dexon-b533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d.tar.bz2
dexon-b533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d.tar.lz
dexon-b533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d.tar.xz
dexon-b533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d.tar.zst
dexon-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')
-rw-r--r--xeth/xeth.go2
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