Log accepted blocks via submitblock.
ok @davecgh
This commit is contained in:
parent
e495dcbc2f
commit
2f0cab1a48
1 changed files with 4 additions and 0 deletions
|
@ -2959,6 +2959,10 @@ func handleSubmitBlock(s *rpcServer, cmd btcjson.Cmd, closeChan <-chan struct{})
|
||||||
return fmt.Sprintf("rejected: %s", err.Error()), nil
|
return fmt.Sprintf("rejected: %s", err.Error()), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
blockSha, err := block.Sha()
|
||||||
|
if err == nil {
|
||||||
|
rpcsLog.Infof("Accepted block %s via submitblock", blockSha)
|
||||||
|
}
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue