I am not sure what I pledge when I set the price for the miner.
As the wiki says you are setting your price per unit resource. The units are
FIL/byte/block. This is how much you charge clients to use the storage you commit and prove, it communicates nothing to the blockchain about your storage commitments. The blockchain doesn’t trust you so it waits until you submit storage proofs to consider your power pledged/committed/proven.
What I don’t grasp is how in practice one uses the library to commit storage.
We are tracking work to directly commit storage from the CLI without accepting deals from clients here. In the meantime the way to commit storage is to setup your node as in the mining wiki and wait for clients to make a deal with you. The
go-filecoin code then takes care of committing automatically. You can setup your own client node as described in the storing wiki and make a deal with your mining node if you want to commit right away.
is it partioned into many sectors or one big chunk?
You commit data in many sectors one at a time. However you submit proofs of spacetime over the set of all your sectors.
(it should be different due to locking mechanism)
I don’t understand what this means
storage blocks–> uncertain, from the library I gather that I need to commit 2880 blocks so data can be saved for 1 day, not sure what kind of unit blocks are (storage-time?)
No, as long as you keep submitting PoSts your storage will be tracked by the network continuously. Your
go-filecoin node will keep submitting PoSts for you by default. It seems like you are confused by the
duration field of
propose-storage-deal. Again this is for the client storage deal layer and tells the client how long they can be guaranteed you will keep their data around in your committed storage. The unit is blockchain blocks, i.e. 30s intervals when blocks arrive in the network.
I would be happy to make a pull request as soon as I get a solid grasp and produce some testing results.
awesome, always happy to get help making this clearer.
My storage deal between the 2 nodes that been staging for a couple of hours, is it normal??
That sounds a little long. Did you get this to work? Did the logs of the mining node show green output talking about sealing? If not something might have gone wrong.