Geth 1.13 (Cancun) update #8

Merged
roysc merged 18 commits from update-geth-1.13 into v5 2024-08-06 21:06:38 +00:00
Showing only changes of commit 51b024a2d5 - Show all commits

View File

@ -27,7 +27,15 @@ var TestChainConfig = &params.ChainConfig{
Ethash: new(params.EthashConfig), Ethash: new(params.EthashConfig),
} }
var TestDBConfig, _ = postgres.TestConfig.WithEnv() var TestDBConfig postgres.Config
roysc marked this conversation as resolved Outdated

is the _ an error? Should be checked if so

is the _ an error? Should be checked if so
func init() {
var err error
TestDBConfig, err = postgres.TestConfig.WithEnv()
if err != nil {
panic(err)
}
}
func SetupDB() *sqlx.DB { func SetupDB() *sqlx.DB {
db, err := postgres.ConnectSQLX(context.Background(), TestDBConfig) db, err := postgres.ConnectSQLX(context.Background(), TestDBConfig)