core/types: add comment on Homestead signer

This commit is contained in:
Felix Lange 2025-03-19 11:22:36 +01:00
parent 2fe36ecb3d
commit 13c5b1149b

View file

@ -375,8 +375,9 @@ func (s EIP155Signer) Hash(tx *Transaction) common.Hash {
return tx.inner.sigHash(s.chainId)
}
// HomesteadSigner implements Signer using the homestead rules.
// Deprecated: always use the Signer interface type
// HomesteadSigner implements Signer using the homestead rules. The only valid reason to
// use this type is creating legacy transactions which are intentionally not
// replay-protected.
type HomesteadSigner struct{ FrontierSigner }
func (hs HomesteadSigner) ChainID() *big.Int {