diff options
Diffstat (limited to 'chain/transaction.go')
-rw-r--r-- | chain/transaction.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chain/transaction.go b/chain/transaction.go index d393f0384..d2d6a8e14 100644 --- a/chain/transaction.go +++ b/chain/transaction.go @@ -117,7 +117,7 @@ func (tx *Transaction) Sender() []byte { // Validate the returned key. // Return nil if public key isn't in full format - if pubkey[0] != 4 { + if len(pubkey) != 0 && pubkey[0] != 4 { return nil } |