# Lotus Miner: sector pledging

Pledging sectors is a technique to seal sectors with random data to make increase the miner's power in the network. This guide covers the motivation, steps to create and upgrade pledged sectors back to a usable state.

# Reasons to pledge sectors

As we have explained, the amount of power of a miner in the Filecoin network is directly proportional to the amount of live storage (active sectors) contributed to the network. Miners with more power have more chances to be selected to mine new blocks.

By sealing sectors with random data (pledging), a miner can demonstrate to the network that it has setup and could potentially offer that much storage for real deals when there is enough demand or when it decides to do so. In the meantime, pledged sectors work similar to regular sectors and result in an increase in the miner's power.

Taking the above into account pledging sectors [on mainnet] network makes most sense when doing it at a scale where it provides enough power to have real chances to mine new blocks. Otherwise it is only useful for testing purposes.

TIP

Pledging one sector during miner setup can be useful to test how long the sealing process takes and make sure that the miner's hardware is correctly configured before taking on real deals.

# Pledging a sector

To pledge a sector use:

lotus-miner sectors pledge

WARNING

This will write data to $TMPDIR so make sure that there is enough space available.

Check that the sealing job has started with:

lotus-miner sealing jobs

This will be accommpanied by a file in <PATH_FOR_SEALING_STORAGE>/unsealed.

After some minutes, you can check the sealing progress with:

lotus-miner sectors list
# and
lotus-miner sealing workers

When sealing for the new is complete, pSet: NO will become pSet: YES.

# Adjusting the expected seal duration setting

If you pledged a sector, you can use the duration of the operation to update the ExpectedSealDuration setting.

To find out how long it took to seal the sector, run:

lotus-miner sectors status --log 0

Then follow the instructions in the configuration reference linked above.

# Upgrading pledged sectors

The pledge period for the sector is 6 months. The upgrading process allows however to recover pledged sectors for re-use much more quickly. The following command marks a sector for upgrade:

lotus-miner sectors mark-for-upgrade <sector number>

The sector should become inactive within 24 hours. From that point, the pledged storage can be re-used to store real data associated with real storage deals.