From 33bb152c0426c066790ca5d7a352602b6587c938 Mon Sep 17 00:00:00 2001 From: Ramil Amerzyanov Date: Wed, 10 Mar 2021 13:13:43 +0300 Subject: [PATCH] [WIP] don't write to public.node from ipld-eth-server (#37) * don't write to public.node from ipld-eth-server * update ipld-eth-indexer to version v0.7.0-alpha --- go.mod | 2 +- go.sum | 2 ++ pkg/serve/config.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 369b358b..e03e8e1f 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,7 @@ require ( github.com/sirupsen/logrus v1.6.0 github.com/spf13/cobra v1.0.0 github.com/spf13/viper v1.7.0 - github.com/vulcanize/ipld-eth-indexer v0.7.0-alpha + github.com/vulcanize/ipld-eth-indexer v0.7.1-alpha github.com/vulcanize/ipfs-ethdb v0.0.2-alpha golang.org/x/sys v0.0.0-20210218155724-8ebf48af031b // indirect ) diff --git a/go.sum b/go.sum index e19301c5..fa5e40a5 100644 --- a/go.sum +++ b/go.sum @@ -1003,6 +1003,8 @@ github.com/vulcanize/ipfs-ethdb v0.0.2 h1:Ogp9k+OMKIn2xo9Y9VoNTjd5v1kXcjL+k3cDQw github.com/vulcanize/ipfs-ethdb v0.0.2/go.mod h1:9yDJ8PCVKK4auwM8KgVLVkGM05Atp2OITJvt6cSvsHs= github.com/vulcanize/ipld-eth-indexer v0.7.0-alpha h1:VuvKC2qLajohczJX74lwBrpr/X8ZNSyC23jIdN5Ppxg= github.com/vulcanize/ipld-eth-indexer v0.7.0-alpha/go.mod h1:LYN2c28N9ceDf66tppc+TpaLqs4UcUlLTvUvg3Awccc= +github.com/vulcanize/ipld-eth-indexer v0.7.1-alpha h1:By8Yyt8IjneVhL+xne/V6VLumKcUx06iE5Kq2rFphzA= +github.com/vulcanize/ipld-eth-indexer v0.7.1-alpha/go.mod h1:LYN2c28N9ceDf66tppc+TpaLqs4UcUlLTvUvg3Awccc= github.com/vulcanize/pg-ipfs-ethdb v0.0.2-alpha h1:wvhpjrRuxjudAael5zhNwGymce/ggvOhHo1q9VJ0NjU= github.com/vulcanize/pg-ipfs-ethdb v0.0.2-alpha/go.mod h1:WIceyu15uxQ4JanLxzKXn4iAyJJSmHAJNWux7qYXGEQ= github.com/wangjia184/sortedset v0.0.0-20160527075905-f5d03557ba30/go.mod h1:YkocrP2K2tcw938x9gCOmT5G5eCD6jsTz0SZuyAqwIE= diff --git a/pkg/serve/config.go b/pkg/serve/config.go index 10f5e580..3f246800 100644 --- a/pkg/serve/config.go +++ b/pkg/serve/config.go @@ -108,7 +108,7 @@ func NewConfig() (*Config, error) { } c.HTTPEndpoint = httpPath overrideDBConnConfig(&c.DBConfig) - serveDB := utils.LoadPostgres(c.DBConfig, nodeInfo) + serveDB := utils.LoadPostgres(c.DBConfig, nodeInfo, false) prom.RegisterDBCollector(c.DBConfig.Name, serveDB.DB) c.DB = &serveDB