From 9b1536b26a78341008c5efe962f916d12220e720 Mon Sep 17 00:00:00 2001 From: Wenbiao Zheng Date: Tue, 19 Jun 2018 19:41:13 +0800 Subject: core: remove dead code, limit test code scope (#17006) * core: move test util var/func to test file * core: remove useless func --- core/types/transaction.go | 9 --------- 1 file changed, 9 deletions(-) (limited to 'core/types') diff --git a/core/types/transaction.go b/core/types/transaction.go index c1cb7a043..b824a77f6 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -35,15 +35,6 @@ var ( ErrInvalidSig = errors.New("invalid transaction v, r, s values") ) -// deriveSigner makes a *best* guess about which signer to use. -func deriveSigner(V *big.Int) Signer { - if V.Sign() != 0 && isProtectedV(V) { - return NewEIP155Signer(deriveChainId(V)) - } else { - return HomesteadSigner{} - } -} - type Transaction struct { data txdata // caches -- cgit v1.2.3