mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
go fmt
This commit is contained in:
parent
ef7e07d564
commit
0151f30b0f
1 changed files with 4 additions and 4 deletions
|
|
@ -508,7 +508,7 @@ func (c CliqueConfig) String() string {
|
|||
// of ChainConfig that shows actual timestamp values instead of pointer addresses.
|
||||
func (c *ChainConfig) String() string {
|
||||
result := fmt.Sprintf("ChainConfig{ChainID: %v", c.ChainID)
|
||||
|
||||
|
||||
// Add block-based forks
|
||||
if c.HomesteadBlock != nil {
|
||||
result += fmt.Sprintf(", HomesteadBlock: %v", c.HomesteadBlock)
|
||||
|
|
@ -555,7 +555,7 @@ func (c *ChainConfig) String() string {
|
|||
if c.MergeNetsplitBlock != nil {
|
||||
result += fmt.Sprintf(", MergeNetsplitBlock: %v", c.MergeNetsplitBlock)
|
||||
}
|
||||
|
||||
|
||||
// Add timestamp-based forks with dereferenced values
|
||||
if c.ShanghaiTime != nil {
|
||||
result += fmt.Sprintf(", ShanghaiTime: %v", *c.ShanghaiTime)
|
||||
|
|
@ -612,11 +612,11 @@ func (c *ChainConfig) String() string {
|
|||
} else {
|
||||
result += ", AmsterdamTime: nil"
|
||||
}
|
||||
|
||||
|
||||
if c.TerminalTotalDifficulty != nil {
|
||||
result += fmt.Sprintf(", TerminalTotalDifficulty: %v", c.TerminalTotalDifficulty)
|
||||
}
|
||||
|
||||
|
||||
result += "}"
|
||||
return result
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue