mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
...
This commit is contained in:
parent
dd0887fc0a
commit
a728d51b91
1 changed files with 1 additions and 9 deletions
|
|
@ -145,15 +145,7 @@ func (c *CliqueConfig) String() string {
|
||||||
|
|
||||||
// String implements the fmt.Stringer interface.
|
// String implements the fmt.Stringer interface.
|
||||||
func (c *ChainConfig) String() string {
|
func (c *ChainConfig) String() string {
|
||||||
var engine interface{}
|
|
||||||
switch {
|
|
||||||
case c.Ethash != nil:
|
|
||||||
engine = c.Ethash
|
|
||||||
case c.Clique != nil:
|
|
||||||
engine = c.Clique
|
|
||||||
default:
|
|
||||||
engine = "unknown"
|
|
||||||
}
|
|
||||||
return fmt.Sprintf("{ChainID: %v EIP150: %v EIP155: %v EIP158: %v EGEM Geth}",
|
return fmt.Sprintf("{ChainID: %v EIP150: %v EIP155: %v EIP158: %v EGEM Geth}",
|
||||||
c.ChainId,
|
c.ChainId,
|
||||||
c.EIP150Block,
|
c.EIP150Block,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue