Doc/PoS: simplify security deposit

This commit is contained in:
Marco Stronati 2018-06-05 09:40:54 +02:00 committed by Benjamin Canou
parent 5b6db63b34
commit 1539f0d0e8

View File

@ -193,14 +193,11 @@ The cost of a security deposit is ``BLOCK_SECURITY_DEPOSIT`` = 512 XTZ
per block created and ``ENDORSEMENT_SECURITY_DEPOSIT`` = 64 XTZ per per block created and ``ENDORSEMENT_SECURITY_DEPOSIT`` = 64 XTZ per
endorsement. endorsement.
Each delegate key has an attached security deposit account controlled by Each delegate key has an associated security deposit account.
the same key. Delegates can withdraw and deposit in this account, but When a delegate bakes or endorses a block the security deposit is
they cannot withdraw more than the "frozen" amount. Each blocks created, automatically moved to the deposit account where it is frozen for
each endorsement signed increases the amount that is frozen. ``PRESERVED_CYCLES`` cycles, after which it is automatically moved
back to the baker's main account.
It is possible to deposit a bond just prior to creating a block
requiring this deposit. Deposits for blocks and endorsements in cycle
``n`` are "unfrozen" at the end of cycle ``n+PRESERVED_CYCLES``.
Since deposits are locked for a period of ``PRESERVED_CYCLES`` one can Since deposits are locked for a period of ``PRESERVED_CYCLES`` one can
compute that at any given time, about ((``BLOCK_SECURITY_DEPOSIT`` + compute that at any given time, about ((``BLOCK_SECURITY_DEPOSIT`` +