aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/types/transaction.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/types/transaction.go b/core/types/transaction.go
index 391fb46f5..7aef5ce94 100644
--- a/core/types/transaction.go
+++ b/core/types/transaction.go
@@ -80,7 +80,7 @@ func (self *Transaction) From() (common.Address, error) {
return common.Address{}, errors.New("invalid public key")
}
var addr common.Address
- copy(addr[:], crypto.Sha3(pubkey[1:]))
+ copy(addr[:], crypto.Sha3(pubkey[1:])[12:])
return addr, nil
}