From 5f60badd9e69721f8157933eeb5ce59c1be653e1 Mon Sep 17 00:00:00 2001 From: Robert Zaremba Date: Thu, 14 May 2020 15:22:15 +0200 Subject: [PATCH] clique doc comments update --- consensus/clique/clique.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/consensus/clique/clique.go b/consensus/clique/clique.go index cf7e7d7c83..5be4ffb25f 100644 --- a/consensus/clique/clique.go +++ b/consensus/clique/clique.go @@ -138,9 +138,9 @@ var ( ) // SignerFn hashes and signs the data to be signed by a backing account. It should point to the -// accounts.Wallet.SignData method. -// The function arguments are: current address, mimeType and data to be hashed and signed. -type SignerFn func(accounts.Account, string, []byte) ([]byte, error) +// accounts.Wallet.SignData method - current implementation relay on the SignData behaviour +// (it must hash the message before signing). +type SignerFn func(signer accounts.Account, mimeType string, message []byte) ([]byte, error) // ecrecover extracts the Ethereum account address from a signed header. func ecrecover(header *types.Header, sigcache *lru.ARCCache) (common.Address, error) {