aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/transaction_test.go
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 /core/types/transaction_test.go
parent35add89c879dd1d12e7ed702d7543f5a749a1d3e (diff)
parentec9620fb2f375379d3404a834a3350089702648a (diff)
downloadgo-tangerine-b533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d.tar
go-tangerine-b533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d.tar.gz
go-tangerine-b533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d.tar.bz2
go-tangerine-b533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d.tar.lz
go-tangerine-b533aaa765c2a6fafed5d7e8bfe5a54c2303ad6d.tar.xz
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 'core/types/transaction_test.go')
-rw-r--r--core/types/transaction_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/types/transaction_test.go b/core/types/transaction_test.go
index dd9c5e87b..c9da4b73b 100644
--- a/core/types/transaction_test.go
+++ b/core/types/transaction_test.go
@@ -34,11 +34,11 @@ var (
)
)
-func TestTransactionHash(t *testing.T) {
- if emptyTx.Hash() != common.HexToHash("c775b99e7ad12f50d819fcd602390467e28141316969f4b57f0626f74fe3b386") {
+func TestTransactionSigHash(t *testing.T) {
+ if emptyTx.SigHash() != common.HexToHash("c775b99e7ad12f50d819fcd602390467e28141316969f4b57f0626f74fe3b386") {
t.Errorf("empty transaction hash mismatch, got %x", emptyTx.Hash())
}
- if rightvrsTx.Hash() != common.HexToHash("fe7a79529ed5f7c3375d06b26b186a8644e0e16c373d7a12be41c62d6042b77a") {
+ if rightvrsTx.SigHash() != common.HexToHash("fe7a79529ed5f7c3375d06b26b186a8644e0e16c373d7a12be41c62d6042b77a") {
t.Errorf("RightVRS transaction hash mismatch, got %x", rightvrsTx.Hash())
}
}