Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/wanchain/go-wanchain int…
Browse files Browse the repository at this point in the history
…o develop
  • Loading branch information
JeremyJiaqg committed Jan 4, 2018
2 parents 3101df1 + 44d95b3 commit 3676f9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions consensus/ethash/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,10 @@ func ecrecover(header *types.Header) (common.Address, error) {
signature := header.Extra[len(header.Extra)-extraSeal:]

// Recover the public key and the Ethereum address
//log.Trace("ecrecover(): cr@zy seal")
log.Trace(fmt.Sprintf(header.String()))

pubkey, err := crypto.Ecrecover(sigHash(header).Bytes(), signature)
//log.Trace("ecrecover(): cr@zy seal hash", "Input hash", sigHash(header).String())
//log.Trace("ecrecover(): Seal hash", "Input hash", sigHash(header).String())
if err != nil {
return common.Address{}, err
}
Expand Down

0 comments on commit 3676f9a

Please sign in to comment.