aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-03-25 05:02:08 +0800
committerFelix Lange <fjl@twurst.com>2017-03-25 05:06:10 +0800
commit4be37e91b941db0cec1cab9c41b7e62a08f78d81 (patch)
tree49727c86e9e295a6157fbf905f5eeabf991cd500 /core
parent1018bf6a00be475cb9af2812c1f61fa8530068a3 (diff)
downloadgo-tangerine-4be37e91b941db0cec1cab9c41b7e62a08f78d81.tar
go-tangerine-4be37e91b941db0cec1cab9c41b7e62a08f78d81.tar.gz
go-tangerine-4be37e91b941db0cec1cab9c41b7e62a08f78d81.tar.bz2
go-tangerine-4be37e91b941db0cec1cab9c41b7e62a08f78d81.tar.lz
go-tangerine-4be37e91b941db0cec1cab9c41b7e62a08f78d81.tar.xz
go-tangerine-4be37e91b941db0cec1cab9c41b7e62a08f78d81.tar.zst
go-tangerine-4be37e91b941db0cec1cab9c41b7e62a08f78d81.zip
core/types: ensure all EIP155 signer fields are set by deriveSigner
Fixes #3819
Diffstat (limited to 'core')
-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{}
}