From 13c5b1149bf160066fbb6431d34a65ac173dad46 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 19 Mar 2025 11:22:36 +0100 Subject: [PATCH] core/types: add comment on Homestead signer --- core/types/transaction_signing.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/types/transaction_signing.go b/core/types/transaction_signing.go index b49e99cc43..95b02f7654 100644 --- a/core/types/transaction_signing.go +++ b/core/types/transaction_signing.go @@ -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 {