Fixed repair reward

This commit is contained in:
Mark Spanbroek 2022-06-07 11:32:10 +02:00 committed by markspanbroek
parent d636511777
commit 8ad08f9b55
1 changed files with 17 additions and 16 deletions

View File

@ -63,6 +63,7 @@ including a small amount of host losses that can be tolerated.
proof parameters # proof of retrievability parameters proof parameters # proof of retrievability parameters
erasure coding # erasure coding parameters erasure coding # erasure coding parameters
dispersal # dispersal parameter dispersal # dispersal parameter
repair reward # amount of tokens paid for repairs
hosts # amount of storage hosts (including loss) hosts # amount of storage hosts (including loss)
loss # number of allowed host losses loss # number of allowed host losses
@ -100,11 +101,11 @@ for every second of the interval a certain amount of tokens are awarded to the
host. Hosts that fill a slot are required to submit frequent proofs of storage. host. Hosts that fill a slot are required to submit frequent proofs of storage.
When a certain number of proofs is missed, the slot is considered empty again. When a certain number of proofs is missed, the slot is considered empty again.
The collateral associated with the slot is used to pay a fee to the node that The collateral associated with the slot is mostly burned. Some of it is used to
indicated that proofs were missing. The rest of the slot collateral is reserved pay a fee to the node that indicated that proofs were missing, and some of it is
for repairs. An empty slot can be filled again once another host submits a reserved for repairs. An empty slot can be filled again once another host
correct proof together with collateral. Payouts for the time interval that a submits a correct proof together with collateral. Payouts for the time interval
slot is empty are burned. that a slot is empty are burned.
Payouts for all hosts are accumulated in the contract and payed out at contract Payouts for all hosts are accumulated in the contract and payed out at contract
end. This is to ensure that the incentive posed by the collateral is not end. This is to ensure that the incentive posed by the collateral is not
@ -164,18 +165,18 @@ The client is able to retrieve any funds that are left in the contract.
Repairs Repairs
------- -------
When a slot becomes empty, the remaining collateral associated with the slot is When a slot becomes empty, some of the remaining collateral associated with the
used as an incentive to repair the lost content. Repair typically involves slot is used as an incentive to repair the lost content. Repair typically
downloading other parts of the content and using erasure coding to restore the involves downloading other parts of the content and using erasure coding to
missing parts. This incurs costs for a host. To compensate the host for these restore the missing parts. This incurs costs for a host. To compensate the host
costs it receives not only its own collateral back at the end of the contract, for these costs it receives not only its own collateral back at the end of the
but also the remaining collateral from the host that failed to hold a slot. contract, but also a reward. The size of the reward is a parameter of the
contract.
We expect the collateral to be significantly higher than the costs of repair. The size of the reward should be chosen carefully. It should not be too low, to
This means that hosts in the network can benefit greatly from repairs, and they incentivize hosts in the network to prioritize repairs over filling new slots in
may prioritize repairs over filling slots in new contracts. This is intentional, the network. It should also not be too high, to prevent malicious nodes in the
we want the network to prioritize honoring existing contracts over starting new network to try to disable hosts in an attempt to collect the reward.
ones.
Renewal Renewal
------- -------