add error log

This commit is contained in:
Tuna 2019-03-12 09:58:06 +07:00
parent f251b87b63
commit 3f2f8bdeb8

View file

@ -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