Skip to content

Commit

Permalink
Merge pull request from algorandfoundation/bugfix/lease-fv
Browse files Browse the repository at this point in the history
Document and fix behavior of leases which was buggy
  • Loading branch information
algofoundation authored Apr 6, 2020
2 parents 57016b9 + b588955 commit e5f5654
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dev/ledger.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ transaction contains the following fields:
- The _lease_ $x$, which is an optional 256-bit integer specifying mutual
exclusion. If $x \neq 0$ (i.e., $x$ is set) and this transaction is
confirmed, then this transaction prevents another transaction from the same
sender and with the lock set to the same value from being confirmed until
sender and with the lease set to the same value from being confirmed until
$r_2$ is confirmed.

- The _genesis identifier_ $\GenesisID$ of the ledger for which this
Expand Down Expand Up @@ -784,9 +784,9 @@ identifier $\GenesisID_B$, the following conditions must all hold:
- Exactly one of the signature or the multisignature is present and verifies
for $\Hash(\Tx)$ under $I$.
- $\Hash(\Tx) \notin \TxTail_r$.
- If $x \neq 0$, there exists no $\Tx' \in TxTail$ with sender $I'$, lock value
- If $x \neq 0$, there exists no $\Tx' \in TxTail$ with sender $I'$, lease value
$x'$, and last valid round $r_2'$ such that $I' = I$, $x' = x$, and
$r_2' >= r$.
$r_2' \geq r$.
- If $\TxType$ is "pay",
- $I \neq I_k$ or both $I' \neq I_{pool}$ and $I_0 \neq 0$.
- $\Stake(r+1, I) - f > a$ if $I' \neq I$ and $I' \neq 0$.
Expand Down

0 comments on commit e5f5654

Please sign in to comment.