func WriteChainConfig(db DatabaseWriter, hash common.Hash, cfg *params.ChainConfig) {
	if cfg == nil {
		return
	}
	data, err := json.Marshal(cfg)
	if err != nil {
		log.Crit("Failed to JSON encode chain config", "err", err)
	}
	if err := db.Put(append(configPrefix, hash[:]...), data); err != nil {
		log.Crit("Failed to store chain config", "err", err)
	}
}
// WriteChainConfig writes the chain config settings to the database.
WriteChainConfig writes the chain config settings to the database.
// WriteChainConfig writes the chain config settings to the database .
func WriteChainConfig(db DatabaseWriter, hash common.Hash, cfg *params.ChainConfig) {
	if cfg == nil {
		return
	}
	data, err := json.Marshal(cfg)
	if err != nil {
		log.Crit("Failed to JSON encode chain config", "err", err)
	}
	if err := db.Put(append(configPrefix, hash[:]...), data); err != nil {
		log.Crit("Failed to store chain config", "err", err)
	}
}
func WriteChainConfig ( db DatabaseWriter , hash common . Hash , cfg * params . ChainConfig ) { if cfg == nil { return } data , err := json . Marshal ( cfg ) if err != nil { log . Crit ( " " , " " , err ) } if err := db . Put ( append ( configPrefix , hash [ : ] ... ) , data ) ; err != nil { log . Crit ( " " , " " , err ) } }
WriteChainConfig writes the chain config settings to the database.
WriteChainConfig writes the chain config settings to the database .