mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
add error log
This commit is contained in:
parent
f251b87b63
commit
3f2f8bdeb8
1 changed files with 2 additions and 0 deletions
|
|
@ -242,11 +242,13 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
|
|||
if m2 == eb {
|
||||
wallet, err := eth.accountManager.Find(accounts.Account{Address: eb})
|
||||
if err != nil {
|
||||
log.Error("Can't find coinbase account wallet", "err", err)
|
||||
return block, false, err
|
||||
}
|
||||
header := block.Header()
|
||||
sighash, err := wallet.SignHash(accounts.Account{Address: eb}, posv.SigHash(header).Bytes())
|
||||
if err != nil {
|
||||
log.Error("Can't get signature hash of m2", "err", err)
|
||||
return block, false, err
|
||||
}
|
||||
header.Validator = sighash
|
||||
|
|
|
|||
Loading…
Reference in a new issue