From c28116cb3b485f01aba852fdc9559a2495db6654 Mon Sep 17 00:00:00 2001 From: obscuren Date: Sat, 21 Mar 2015 14:46:50 +0100 Subject: [PATCH] Fixed incorrect recipient derived --- core/types/transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/types/transaction.go b/core/types/transaction.go index 391fb46f54..7aef5ce94f 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 }