forked from cerc-io/plugeth
core/types: ensure all EIP155 signer fields are set by deriveSigner
Fixes #3819
This commit is contained in:
parent
1018bf6a00
commit
4be37e91b9
@ -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{}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user