Skip to content
Snippets Groups Projects
Commit f24a9fe0 authored by Miguel Montes's avatar Miguel Montes
Browse files

Corregido problema en la obtención del firmante del bloque génesis.

parent 2018ab55
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment