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

Remove IPFS code #523

Merged
merged 4 commits into from
Aug 31, 2021
Merged

Remove IPFS code #523

merged 4 commits into from
Aug 31, 2021

Conversation

evan-forbes
Copy link
Member

@evan-forbes evan-forbes commented Aug 30, 2021

Description

removes the IPFS and IPLD packages completely to avoid importing our fork of IPFS. Notably keeps the nmt plugin.

part of #506

@evan-forbes evan-forbes self-assigned this Aug 30, 2021
Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Also, I think we can go even further and remove mentions of IPLD/IPFS entirely from this repo. The only DA thing required in Core is an ability to verify erasure coding during consensus and for this, we can omit IPLD usage, specifically, NMTNodeAdder, as it's needed only to store, provide, and serve shares. Luckily, we don't need those functions in Core and only calculations. So the end EDS calculation could look like this(but without adder).

@evan-forbes evan-forbes marked this pull request as ready for review August 30, 2021 15:23
@evan-forbes evan-forbes requested a review from liamsi as a code owner August 30, 2021 15:23
@evan-forbes evan-forbes removed the request for review from liamsi August 30, 2021 15:53
@@ -16,50 +16,24 @@ require (
github.com/gogo/protobuf v1.3.2
github.com/golang/protobuf v1.5.2
github.com/google/btree v1.0.0
github.com/gopherjs/gopherjs v0.0.0-20190812055157-5d271430af9f // indirect
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This module is necessary because github.com/gopherjs/gopherjs/js is imported in:

- github.com/celestiaorg/celestia-core/cmd/tendermint/commands
-- github.com/spf13/viper
--- gopkg.in/ini.v1
---- gopkg.in/ini.v1.test
----- github.com/smartystreets/goconvey/convey
------ github.com/jtolds/gls

github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5 // indirect
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.11.0
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0
github.com/rs/cors v1.8.0
github.com/sasha-s/go-deadlock v0.2.0
github.com/smartystreets/assertions v1.0.1 // indirect
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This module is necessary because github.com/smartystreets/assertions is imported in:

- github.com/celestiaorg/celestia-core/cmd/tendermint/commands
-- github.com/spf13/viper
--- gopkg.in/ini.v1
---- gopkg.in/ini.v1.test
----- github.com/smartystreets/goconvey/convey

perhaps a different version of viper doesn't have these

@evan-forbes evan-forbes merged commit 321cdc4 into master Aug 31, 2021
@evan-forbes evan-forbes deleted the evan/purge-ipfs-node branch August 31, 2021 10:27
@evan-forbes evan-forbes mentioned this pull request Aug 31, 2021
4 tasks
@evan-forbes evan-forbes restored the evan/purge-ipfs-node branch August 31, 2021 15:05
@tac0turtle
Copy link
Collaborator

just saw this went through, will complete teh update to tm 0.35

@tac0turtle tac0turtle deleted the evan/purge-ipfs-node branch September 2, 2021 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants