Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop embedding an IPFS node #514

Merged
merged 11 commits into from
Aug 25, 2021
8 changes: 1 addition & 7 deletions abci/example/dummyapp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
cmd "github.com/celestiaorg/celestia-core/cmd/tendermint/commands"
"github.com/celestiaorg/celestia-core/cmd/tendermint/commands/debug"
cfg "github.com/celestiaorg/celestia-core/config"
"github.com/celestiaorg/celestia-core/ipfs"
"github.com/celestiaorg/celestia-core/libs/cli"
"github.com/celestiaorg/celestia-core/libs/log"
"github.com/celestiaorg/celestia-core/node"
Expand Down Expand Up @@ -78,11 +77,7 @@ func main() {
}

// DummyNode implements NodeProvider.
func DummyNode(config *cfg.Config, provider ipfs.NodeProvider, logger log.Logger) (*node.Node, error) {
if err := ipfs.InitRepo(config.IPFS.Path(), logger); err != nil {
return nil, fmt.Errorf("failed to initialize IPFS repo at path %s: %v", config.IPFS.Path(), err)
}

func DummyNode(config *cfg.Config, logger log.Logger) (*node.Node, error) {
nodeKey, err := p2p.LoadOrGenNodeKey(config.NodeKeyFile())
if err != nil {
return nil, fmt.Errorf("failed to load or gen node key %s: %w", config.NodeKeyFile(), err)
Expand All @@ -103,7 +98,6 @@ func DummyNode(config *cfg.Config, provider ipfs.NodeProvider, logger log.Logger
proxy.NewLocalClientCreator(app),
node.DefaultGenesisDocProviderFunc(config),
node.DefaultDBProvider,
provider,
node.DefaultMetricsProvider(config.Instrumentation),
logger,
)
Expand Down
Loading