aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-03-27 05:22:34 +0800
committerGitHub <noreply@github.com>2017-03-27 05:22:34 +0800
commit7419d0c38291236ecc4e54b1a905d5cbcbe065a4 (patch)
tree49727c86e9e295a6157fbf905f5eeabf991cd500
parent1018bf6a00be475cb9af2812c1f61fa8530068a3 (diff)
parent4be37e91b941db0cec1cab9c41b7e62a08f78d81 (diff)
downloadgo-tangerine-7419d0c38291236ecc4e54b1a905d5cbcbe065a4.tar
go-tangerine-7419d0c38291236ecc4e54b1a905d5cbcbe065a4.tar.gz
go-tangerine-7419d0c38291236ecc4e54b1a905d5cbcbe065a4.tar.bz2
go-tangerine-7419d0c38291236ecc4e54b1a905d5cbcbe065a4.tar.lz
go-tangerine-7419d0c38291236ecc4e54b1a905d5cbcbe065a4.tar.xz
go-tangerine-7419d0c38291236ecc4e54b1a905d5cbcbe065a4.tar.zst
go-tangerine-7419d0c38291236ecc4e54b1a905d5cbcbe065a4.zip
Merge pull request #3820 from fjl/core-types-eip155-chainid-mul
core/types: ensure all EIP155 signer fields are set by deriveSigner
-rw-r--r--core/types/transaction.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/types/transaction.go b/core/types/transaction.go
index 86948b5b7..ee2f25b52 100644
--- a/core/types/transaction.go
+++ b/core/types/transaction.go
@@ -40,7 +40,7 @@ var (
// deriveSigner makes a *best* guess about which signer to use.
func deriveSigner(V *big.Int) Signer {
if V.Sign() != 0 && isProtectedV(V) {
- return EIP155Signer{chainId: deriveChainId(V)}
+ return NewEIP155Signer(deriveChainId(V))
} else {
return HomesteadSigner{}
}