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.
|
// of ChainConfig that shows actual timestamp values instead of pointer addresses.
|
||||||
func (c *ChainConfig) String() string {
|
func (c *ChainConfig) String() string {
|
||||||
result := fmt.Sprintf("ChainConfig{ChainID: %v", c.ChainID)
|
result := fmt.Sprintf("ChainConfig{ChainID: %v", c.ChainID)
|
||||||
|
|
||||||
// Add block-based forks
|
// Add block-based forks
|
||||||
if c.HomesteadBlock != nil {
|
if c.HomesteadBlock != nil {
|
||||||
result += fmt.Sprintf(", HomesteadBlock: %v", c.HomesteadBlock)
|
result += fmt.Sprintf(", HomesteadBlock: %v", c.HomesteadBlock)
|
||||||
|
|
@ -555,7 +555,7 @@ func (c *ChainConfig) String() string {
|
||||||
if c.MergeNetsplitBlock != nil {
|
if c.MergeNetsplitBlock != nil {
|
||||||
result += fmt.Sprintf(", MergeNetsplitBlock: %v", c.MergeNetsplitBlock)
|
result += fmt.Sprintf(", MergeNetsplitBlock: %v", c.MergeNetsplitBlock)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add timestamp-based forks with dereferenced values
|
// Add timestamp-based forks with dereferenced values
|
||||||
if c.ShanghaiTime != nil {
|
if c.ShanghaiTime != nil {
|
||||||
result += fmt.Sprintf(", ShanghaiTime: %v", *c.ShanghaiTime)
|
result += fmt.Sprintf(", ShanghaiTime: %v", *c.ShanghaiTime)
|
||||||
|
|
@ -612,11 +612,11 @@ func (c *ChainConfig) String() string {
|
||||||
} else {
|
} else {
|
||||||
result += ", AmsterdamTime: nil"
|
result += ", AmsterdamTime: nil"
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.TerminalTotalDifficulty != nil {
|
if c.TerminalTotalDifficulty != nil {
|
||||||
result += fmt.Sprintf(", TerminalTotalDifficulty: %v", c.TerminalTotalDifficulty)
|
result += fmt.Sprintf(", TerminalTotalDifficulty: %v", c.TerminalTotalDifficulty)
|
||||||
}
|
}
|
||||||
|
|
||||||
result += "}"
|
result += "}"
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue