You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev/ledger.md
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -490,7 +490,7 @@ which can be encoded as a msgpack struct:
490
490
- The number of digits after the decimal place to be used when displaying the
491
491
asset, encoded with msgpack field `dc`. A value of 0 represents an asset
492
492
that is not divisible, while a value of 1 represents an asset divisible into
493
-
into tenths, 2 into hundredths, and so on. This value must be between 0 and
493
+
into tenths, 2 into hundredths, and so on. This value must be between 0
494
494
and 19 (inclusive) ($2^{64}-1$ is 20 decimal digits).
495
495
496
496
- Whether holdings of that asset are frozen by default, a boolean flag encoded
@@ -638,9 +638,9 @@ specific fashion:
638
638
In more detail, let $r$ be the last round in which a transaction touched account $I$ (and therefore all pending rewards were added to it). Consider the following quantities, as defined in the [Account State](#account-state):
639
639
640
640
- The raw balance $a_I$ of account $I$ at round $r$ is its total balance on that round.
641
-
- The rewards base $a'_I$ is meant to capture the total rewards that were allocated to all accounts upto round $r$, expressed as a fraction of the total stake (with limited precision as described below).
641
+
- The rewards base $a'_I$ is meant to capture the total rewards that were allocated to all accounts up to round $r$, expressed as a fraction of the total stake (with limited precision as described below).
642
642
643
-
Given these two quantities, the normalized balance of an online account $I$ is $a_I/(1+a'_I)$. For example, if the total amount of rewards distributed upto round $r$ is 20% of the total stake, then the normalized balance is $a_I/1.2$.
643
+
Given these two quantities, the normalized balance of an online account $I$ is $a_I/(1+a'_I)$. For example, if the total amount of rewards distributed up to round $r$ is 20% of the total stake, then the normalized balance is $a_I/1.2$.
644
644
645
645
To limit the required precision in this calculation, the system uses a parameter $ru$ that specifies the rewards-earning unit, namely accounts only earn rewards for a whole number of $ru$ microAlgos. (Currently $ru=1,000,000$, so the rewards-earning unit is one Algo.)
646
646
@@ -1155,7 +1155,7 @@ If the sum of the fees paid by the transactions in a transaction group is less t
1155
1155
1156
1156
If the sum of the lengths of the boxes denoted by the box references in a
1157
1157
transaction group exceeds 1,024 times the total number of box
1158
-
referencess in the transaction group, then the block is invalid. Call
1158
+
references in the transaction group, then the block is invalid. Call
1159
1159
this limit the _I/O Budget_ for the group. Box references with an
1160
1160
empty name are counted toward the total number of references, but add
1161
1161
nothing to the sum of lengths.
@@ -1165,7 +1165,11 @@ modification) in a transaction group exceeds the I/O Budget of the
1165
1165
group at any time during evaluation (see [ApplicationCall Transaction
1166
1166
Semantics]), then the block is invalid.
1167
1167
1168
-
Beyond the TxGroup, MinFee, and Box size checks, each transaction in a
1168
+
If the sum of the lengths of all the logic signatures and their arguments
1169
+
in a transaction group exceeds the number of transactions in the group times
1170
+
1000 bytes (consensus variable `MaxLogicSigSize`), then the block in invalid.
1171
+
1172
+
Beyond the TxGroup, MinFee, Box size, and LogicSig size checks, each transaction in a
1169
1173
group is evaluated separately and must be valid on its own, as
1170
1174
described below in the [Validity and State Changes] section. For
1171
1175
example, an account with balance 50 could not spend 100 in transaction
0 commit comments