core: make genesis incompatibility error more explicit

pull/14358/head
Péter Szilágyi 8 years ago
parent e353f9c088
commit edef84da2b
No known key found for this signature in database
GPG Key ID: E9AE538CEDF8293D
  1. 2
      core/genesis.go

@ -86,7 +86,7 @@ type GenesisMismatchError struct {
} }
func (e *GenesisMismatchError) Error() string { func (e *GenesisMismatchError) Error() string {
return fmt.Sprintf("wrong genesis block in database (have %x, new %x)", e.Stored[:8], e.New[:8]) return fmt.Sprintf("database already contains an incompatible genesis block (have %x, new %x)", e.Stored[:8], e.New[:8])
} }
// SetupGenesisBlock writes or updates the genesis block in db. // SetupGenesisBlock writes or updates the genesis block in db.

Loading…
Cancel
Save