lotus/documentation/en/store/adding-from-ipfs.md
Hector Sanjuan fe52c47570 Docs review and re-organization
This:

* Re-organizes the docs into sections that align with what docs.filecoin.io becoming:
  * An installation section
  * A "getting started" section (lotus client focused)
  * A "storing" section (lotus client focused)
  * A "mining" section (miner focused)
  * A "build" section (developer focused)
  * An legacy "architecture" section is left in the last place.

A few high-value documentation pages have been reviewed and updated with the latest recommendations:

* Installation section and lotus setup
* Miner setup
* etc.
...

Other pages have been correctly merged into the new relevant sections. Some pages have not been touched. The filesystem layout of the documentation has been changed into folders corresponding to the sections (as requested by @cw). Some pages that were not linked at all and/or where hidden, have been moved to "unclassified".

This should make the porting of the Lotus documentation to docs.filecoin.io much easier, while ensuring it is more up to date than it was before.

For the moment, this breaks most links as link-aliasing is not supported in lotus-docs.
2020-09-03 16:35:16 +02:00

612 B

Adding data from IPFS

Lotus supports making deals with data stored in IPFS, without having to re-import it into lotus.

To enable this integration, you need to have an IPFS daemon running in the background.

Then, open up ~/.lotus/config.toml (or if you manually set LOTUS_PATH, look under that directory) and look for the Client field, and set UseIpfs to true.

[Client]
UseIpfs = true

After restarting the lotus daemon, you should be able to make deals with data in your IPFS node:

$ ipfs add -r SomeData
QmSomeData
$ ./lotus client deal QmSomeData t01000 0.0000000001 80000