From f24a9fe0c32e9033b0ee19c83d38f16443bd40d5 Mon Sep 17 00:00:00 2001 From: Miguel Montes <miguel.montes@unc.edu.ar> Date: Sun, 2 Dec 2018 21:53:57 -0300 Subject: [PATCH] =?UTF-8?q?Corregido=20problema=20en=20la=20obtenci=C3=B3n?= =?UTF-8?q?=20del=20firmante=20del=20bloque=20g=C3=A9nesis.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bfa_client/src/clique/clique.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bfa_client/src/clique/clique.go b/bfa_client/src/clique/clique.go index 697482b..fbc159e 100644 --- a/bfa_client/src/clique/clique.go +++ b/bfa_client/src/clique/clique.go @@ -52,6 +52,9 @@ func sigHash(header BlockHeader) (hash common.Hash) { } func GetSigner(header BlockHeader) (address common.Address) { + if header.BlockNumber().Int64() == 0 { // Genesis block has no signers, we return an empty address + return + } hash := sigHash(header).Bytes() pubkey, err := crypto.Ecrecover(hash, header.Signature()) if err != nil { -- GitLab