core: more compact bad block report (#25714)

This shortens the chain config summary in bad block reports,
and adds go-ethereum version information as well.

Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
lightclient
2022-09-17 21:27:10 +02:00
committed by GitHub
co-authored by Felix Lange
parent ada603fab5
commit 8e5201551d
4 changed files with 162 additions and 22 deletions
+2 -2
View File
@@ -407,8 +407,8 @@ func (c *CliqueConfig) String() string {
return "clique"
}
// String implements the fmt.Stringer interface.
func (c *ChainConfig) String() string {
// Description returns a human-readable description of ChainConfig.
func (c *ChainConfig) Description() string {
var banner string
// Create some basinc network config output