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

Fixes #3819
This commit is contained in:
Felix Lange 2017-03-24 22:02:08 +01:00
parent 1018bf6a00
commit 4be37e91b9

View File

@ -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{}
}