core/types: ensure all EIP155 signer fields are set by deriveSigner

Fixes #3819
pull/3820/head
Felix Lange 8 years ago
parent 1018bf6a00
commit 4be37e91b9
  1. 2
      core/types/transaction.go

@ -40,7 +40,7 @@ var (
// deriveSigner makes a *best* guess about which signer to use. // deriveSigner makes a *best* guess about which signer to use.
func deriveSigner(V *big.Int) Signer { func deriveSigner(V *big.Int) Signer {
if V.Sign() != 0 && isProtectedV(V) { if V.Sign() != 0 && isProtectedV(V) {
return EIP155Signer{chainId: deriveChainId(V)} return NewEIP155Signer(deriveChainId(V))
} else { } else {
return HomesteadSigner{} return HomesteadSigner{}
} }

Loading…
Cancel
Save